So far, while programming, we have basically been dealing with simple values, such as individual numbers and strings. However, when writing computer programs, you usually have to deal with multiple values grouped together. For instance, think about a bank transaction—what values would you need to store? You would need to know when the transaction happened, how much the transaction was for, who sent the money, and who received the money. Therefore, you would need, at minimum, four ...
11. Grouping Values Together with Objects and Arrays
Get Programming for Absolute Beginners: Using the JavaScript Programming Language now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.