Answers for "check string in array of string in js"

3

check string in array of string in js

const names = ["Mario", "Anna", "Jacob"];

console.log(names.includes("Jade")) // Output: False
// It Checks If (Names) Contain's ("Jade") Or Not


console.log(names.includes("Anna")) // Output: True
// It Checks If (Names) Contain's ("Anna") Or Not
Posted by: Guest on July-14-2021

Code answers related to "check string in array of string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language