if you have an array eg let a = [1,2,3,4,5]
then i console.log( {a}) // {a: [1,2,3,4,5]}
what kind of object declaration is this?
if you have an array eg let a = [1,2,3,4,5]
then i console.log( {a}) // {a: [1,2,3,4,5]}
what kind of object declaration is this?
this is an object literal shorthand
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.