Javascript Object Literal


/ Published in: JavaScript
Save to your folder(s)

In object literal notation, an object is described as a set of comma-separated name/
value pairs enclosed in curly braces ({}). Names inside the object may be either strings or identifiers that are followed by a colon. There should be no comma used after the final name/value pair in the object as this may result in errors.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.