I have arrays in my code like this:
let shoppinglist = ['laptop','ram','screen'];
let anynum = [1,2,nan,true,null,'dog'];
let colour = ['red'];
let shoppingList2 = ['cheese','2 milk'];
let myapp = [0,1,2,3,4,5];
but I got this error when running:
Uncaught SyntaxError: Identifier 'colour' has already been declared
myapp
VM192:1 Uncaught ReferenceError: myapp is not defined
at <anonymous>:1:1
(anonymous) @ VM192:1
shoppinglist.length
VM240:1 Uncaught ReferenceError: shoppinglist is not defined
at <anonymous>:1:1
(anonymous) @ VM240:1
shoppingList2
VM264:1 Uncaught ReferenceError: shoppingList2 is not defined
at <anonymous>:1:1
(anonymous) @ VM264:1

nan?nan, itsNaN