0
Why I'm getting [ object Object ] ?
Need help to understand the attached js lines pretty please https://code.sololearn.com/c2JVv7pzgTwU/?ref=app
2 Respostas
+ 3
Since <obj> is an array, you can use forEach() method
obj.forEach( o => console.log( `${o.name} height is ${o.height}cm` ) );