Organize your JavaScript: The Object Literal
JavaScript is all about objects. When thinking about JavaScript objects, simply think about groups of key-values pairs (these are sometimes known as “associate arrays” “hash tables” or “hash maps” in other languages). An object literal is a list of…