© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
J. BartlettProgramming for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-8751-4_11

11. Grouping Values Together with Objects and Arrays

Jonathan Bartlett1  
(1)
Tulsa, OK, USA
 

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 ...

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.