DEV Community

Discussion on: Is it possible to nest an array in a JavaScript object?

 
morrisjohn profile image
Morris John

Thanks. I can't believe the difference between = & : almost made me pull my entire hair out.

I saw mistake was declaring the array within the object with an equal sign (=) instead of a colon(:).

Thanks man