Search posts, tags, users, and pages
Abdelmalek Ennani
IT ๐ธโ๐น๐บ๐ฉโ๐ช๐ณ๐น๐|๐ซโ๐ทโ๐ด๐ณ๐น ๐ช๐ณ๐ฉ enthusiast ๐ฅ | ๐ฏ๐ฆ๐ปโ๐ฆโ๐ธโ๐จโ๐ท๐ฎ๐ตโ๐น ๐
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...
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)},{})
Kam Lasater
Building systems to build systems
Thanks for sharing ๐. Actually I was planning to make an other post to explain them
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)},{})