Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

.includes meaning in javascript

let fruits = ['mango', 'banana', 'pineapple', 'tomato'];

console.log(fruits.includes('banana')); //Returns True because banana is included it the list
console.log(fruits.includes('orange')); // Returns False, orange is not in the list
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #meaning #javascript
ADD COMMENT
Topic
Name
3+9 =