3. Scoping



I rly can't understand what to do. Can you help me?


Basically you just need to move the building information outside of the function like this:

function myApartment() {
	var myCoffeeMaker = 'Aeropress';
	var myCloset = 'Extra coats in the back';
	var myRefridgerator = 'Filled with veggies and dark chocolate.';
	var myDog = 'Nikko';
        var buildingAddress = '150 E 14th St, New York, NY';
        var buildingLaundryCode = 4927;
        var buildingPhone = '(481) 516-2342';


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