Basic JavaScript - Manipulate Arrays With push Method

It actually seems like a very simple solution. But I can’t get past here. Help please.
Describe your issue in detail here.

Your code so far

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

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

console.log(myArray);

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Mobile Safari/537.36

Challenge: Basic JavaScript - Manipulate Arrays With push Method

Link to the challenge:

Hello!
It is missing the array [ ]brackets within the function .

hope this helps

1 Like

,:face_with_peeking_eye::face_with_peeking_eye::face_with_peeking_eye::face_with_peeking_eye:
I’ve tried many ways, including this one.
It’s unbelievable.
Thank you so much for your support :person_raising_hand:

1 Like

You are very welcome!

It would be easy for any of us to miss it.
I think we forget because of the parenthesis.

Keep up your good progress!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.