Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for?of loop

const iterable = [10, 20, 30];

for (const value of iterable) {
  console.log(value);
}
// 10
// 20
// 30
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
3+5 =