This is what object literal syntax looks like:
var x = {property:value};
Now, please correct me if I am wrong but what I'm looking at is the word "var" here, and that seems to imply "variable". Does this mean that fundamentally "objects" are variables (with the caveat that they behave similar to arrays)? I recently asked a question about whether variables were objects and everyone said no.
But it's strange that the keyword "var" is used when creating an object literal, and if they aren't variables (which I'm assuming for now) why would ecmascript incorporate this use if object literals are not in some way or another variables? It seems syntactically confusing.