Using Loops in JavaScript
In previous articles we have talked about how for, while, and do...while loops work at a basic level. So I hope that you have taken some time and played around with those loops enough that you feel comfortable enough to take on todays examples.
So l...
ehoversten.hashnode.dev7 min read
TypeC
I type C, you read me
There's another way to do a loop in Javascript using ES6 syntax.
let numberArr = [1, 2, 3, 4, 5]; numberArr.map(number => { console.log(number) })