Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

includes 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
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #includes #js
ADD COMMENT
Topic
Name
9+9 =