It is all the same.
To answer your questions in order:
A hash object is just an object. In JavaScript, This can be written
{}
(sometimes called object literals) in the code. You can also create objects witha = new Object()
if you want.The term is used. I personally did not notice the term
hash object
often, as JavaScript objects are usually just referred to as objects.In JavaScript, only objects (e.g.
{}
is an object) exist. You might know objects in other languages by different names:Dictionary
,Hash
,Associative Array
, just to name a few. The essential thing to remember is that in JavaScript, an object is basically just a set of key-value-pairs (with a key of type String and an arbitrary value).Yes and yes.
I said "objects" a lot in this answer - it really is not that complicated as it's just multiple different names for the same thing..