Functions and scope


am unable to proceed to the 3rd page; Here is my code

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

function myApartment()
var mailBoxNumber = " Box 3";
laundryRoom= "In-unit";
console.log ("Mail box number is " + mailBoxNumber + ", Laundry room in located " + laundryRoom);


the instructions say "To see the hidden variables inside the function, delete the console.log on mailBoxNumber in the global scope, and call the function with myApartment();."

What is the issue here?

Replace this line with your code.


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