"Reason" to create an array


#1

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


#2

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


#3

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