Manipulate Arrays With Push

Manipulate Arrays With Push


I’m trying to exercise 163 and can’t see my error. Is this a bug?

// Example
var ourArray = ["Stimpson", "J", "cat"];
ourArray.push(["happy", "joy"]); 
// ourArray now equals ["Stimpson", "J", "cat", ["happy", "joy"]]

// Setup
var myArray = [["John", 23], ["cat", 2]];

// Only change code below this line.
myArray.push(["dog", 3])


You omitted the semicolon sign (i.e "semicolon= ; ". Input it and try again


Wow. I can’t believe it missed that. Thanks!


You are welcome, happy coding