Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

indefOf

const beasts = ['ant', 'bison', 'camel', 'duck', 'bison'];

console.log(beasts.indexOf('bison'));
// expected output: 1
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #indefOf
ADD COMMENT
Topic
Name
2+4 =