Is there a bug in "2. Functional Scope"?


#1


Many people seem to be writing the same code and getting the same error, I can't get past the second exercise without getting the error. I feel I am writing the correct code and sometimes it passes and sometimes it doesnt. Its really frustrating as I am trying to really get to grips with Javascript and this is off putting.


var laundryRoom = 'Basement';
var mailRoom = 'Room 1A';

function myApartment ()
{
var mailBoxNumber = 'Box 3';
var laundryRoom = 'In-unit';

}
console.log('Laundry: ' + laundryRoom + ', Mail: ' + mailRoom);

https://www.codecademy.com/courses/learn-javascript/lessons/scope/exercises/functional-scope?action=lesson_resume&link_content_target=interstitial_lesson

Error:Did you write a variable named mailBoxNumber in the myApartment function?

Replace this line with your code.


Sequel of this question
#2

All I really want to know if its a bug, if so I can relax, if not I have to figure out whats wrong


#3

I've got, Mail box:.


#4

did you manage to make it work?


#5

That lesson worked out for me, but I didn't test your text. Did you test mine?


#6

I havent yet, I will


#7

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