"Reason" to create an array

I am at that “fundamentals” part of that app and, just, created an array. What’d be a “reason” to create an array?

Hi JC,

You create an array so you can list down or store multiple values to a single variable (“var”), without writing a lot of “var” codes and make it messy plus uneffective for longer codes in the future.

Read up on this site to give you more information on Arrays: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Arrays

1 Like

Hi, @Adlmz23 - Thanks for the link - Quick reference is always appreciated!