30 codecademy bug?!


#1

Can't post the answer with space between "Object" and "()". The lesson 30 only accepts "Object()" and not "Object ()".

Is this a bug or java grammar?


var spencer = {
  age: 22,
  country: "United States"
};

// make spencer2 here with constructor notation

var spencer2 = new Object ();
    spencer2.age = 22;
    spencer2.country = "United States";


#2

That is somewhat peculiar. I put the space in and it said the same thing. I tried putting a space in between in other lessons and it passed so idk why on this particular one it does that. Obviously, with the space inbetween on this lesson, this lesson reads it as disconnected or incomplete with the space inbetween. Interesting find sir or ma'am.


#3

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