No-Library (pure JS), HTML, CSS, JavaScript
jQuery 2.1.3, HTML, CSS, JavaScript
Use functions to process arrays
Just did this quickly. Could be better. Possible use reduce()
This is the most common way to construct objects
jQuery 2.0.2, HTML, CSS, JavaScript