Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascipr for of

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

for (const element of array1) {
  console.log(element);
}

// expected output: "a"
// expected output: "b"
// expected output: "c"
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascipr
ADD COMMENT
Topic
Name
5+5 =