introduction Arrays in JavaScript can work both as a queue and as a stack. They allow you to add/remove elements both to/from the beginning or the end. and they are dynamic due that you can store values of different data types. "The Array object, as...

Markdown supported ยท โโต to post
Kam Lasater
Building systems to build systems
A few other options that start to move from directly iterating to manipulation of the data.
let arr = [100 , 200 , 300 , 400 , 500]; arr.map((v) => {console.log(v)}); arr.filter((v) => {console.log(v)}) arr.reduce((a,v) => {console.log(v)},{})