const arr = [
{ name:'plus1', age:20 },
{ name:'plus2', age:30 },
{ name:'plus3', age:40 },
]
arr.forEach((val,index) => {
console.log(index + "⇒" + val.name + "⇒" + val.age)
})
//"0⇒plus1⇒20"
//"1⇒plus2⇒30"
//"2⇒plus3⇒40"
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.