Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for array javascript

let iterable = [10, 20, 30];

for (let value of iterable) {
  value += 1;
  console.log(value);
}
// 11
// 21
// 31
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #array #javascript
ADD COMMENT
Topic
Name
3+2 =