Learn JavaScript Scope lesson does not work


#1

The code is correct, even if I give up and accept the code from the app, it fails on its own code too. Something is wrong with Scope lesson 2 part 2.



It says
Did you write a variable named mailBoxNumber in the myApartment function?


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

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

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


#2

Could you post a screenshot, please?


#3

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