In Javascript everything is an object. An object is a collection of properties, and a property is association between a name and a value.
Have a look at:-
https://developer.mozilla.org/en-US/...g_with_Objects
Frustration - the first time you can't do it the second time.
Desperation - the second time you can't do it the first time
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
|