Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for each

const array1 = ['a', 'b', 'c'];

array1.forEach(element => console.log(element));

// expected output: "a"
// expected output: "b"
// expected output: "c"
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+2 =