javascript - Setting object property to Array Literal throwing error -
i have simple line in js,
var = new { aa: [] } but line throwing error in js.
typeerror: object not function any reason why?
new used instantiate object using constructor (which function, hence error message).
in case use
var = { aa: [] } some references :
Comments
Post a Comment