Time To Go - Typos?


#1

  1. “Times…has been imported…”
  2. “plane” “train” “bus” are referred to both as arrays and as variables. Is this correct?

#2
  1. Will change to “have”, thanks!
  2. 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.


console.log([4,5,6]);

[4,5,6] is an “array literal”. It is an array, but not a variable.

–Frankie