If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

point of objects

So, I am reading the book, "eloquent Javascript" and it must say it is a very poorly written book. It doesn't explain as to why things work the way they do in javascript and just basically says, "do this" and thats it. But that's beside the point.

What is the point of objects? all to often, I find tutorials, and other things about beginners guides on how to do things, but many of them (99.9999% of them) don't tell you what it can be used for. I had this trouble with arrays.

Can someone enlighten me to what the point of objects are? Please don't just tell me, "they ar a type of value where properties can be freely added, removed, or changed". Give me a eveyrday language type of explanation.

an object is like a row of a spreadsheet, the header row of a spreadsheet is like a class or constructor.

if i want a playlist, it would be nice to be able to sort by year, title, artist, etc.
in js, each playlist item would be an object, and the list itself is an array (if you needed one). arrays are just objects that use 1, 2, and 3 instead of a, b, and c.