What Is the Object Literal Syntax in JavaScript?
You use curly brackets {}
to declare objects in JavaScript. Writing out a new object this way is called creating an object literal, which means curly braces {}
are the object literal syntax.
Published in
3 min readJan 14, 2021