Issue with .shift() ouput

Hi, I am getting the correct ouputs logged to the console except with a single ’ quote instead of a double " quote. Am I doing something wrong or is this exercise solution set up wrong?

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

// Setup
const myArray = [["John", 23], ["dog", 3]];

// Only change code below this line
const removedFromArray = myArray.shift();


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15

Challenge: Manipulate Arrays With shift()

Link to the challenge:

The problem is not the type of quotes, but the fact you should check again on how the variables are named :wink:
Spoiler: It’s not RemovedFromArray

Consoles will generally surround strings in single quotes, but that doesn’t change the value at all "some string" is equal to 'some string'. You’ll probably notice that developers usually use single quotes instead of double just because we are lazy and it’s fewer keystrokes.

As @Jagaya pointed out, the reason that the tests are failing is something else.

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