- “Times…has been imported…”
- “plane” “train” “bus” are referred to both as arrays and as variables. Is this correct?
- Will change to “have”, thanks!
- Yes, variables are often referred to by the data they store.
let x = [1,2,3];
x is a variable, and since it could be assigned to a string, or number, or object, it’s usually most helpful to refer to
x as an array.
[4,5,6] is an “array literal”. It is an array, but not a variable.