Learn JavaScript Scope lesson does not work


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);


Could you post a screenshot, please?


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