const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
arr.forEach((val,index) => {
console.log(index + "⇒" + val)
})
//"0⇒1"
//"1⇒2"
//"2⇒3"
//"3⇒4"
//"4⇒5"
//"5⇒6"
//"6⇒7"
//"7⇒8"
//"8⇒9"
//"9⇒10"
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.