Expected identifier, string or number

You used incorrect literal syntax to declare an object literal. The properties of an object literal must be an identifier, a string, or a number. An object literal (also called an "object initializer") consists of a comma-separated list of property:value pairs, all enclosed within brackets. For example:

var point = {x:1.2, y:-3.4};  

To correct this error

  • Ensure you use the proper literal syntax.

See Also

Comma Operator (,)