Manipulate Arrays With Push

Manipulate Arrays With Push
0

#1

Hi,
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])

#2

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


#3

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


#4

You are welcome, happy coding