3. Scoping


#1

https://www.codecademy.com/en/courses/learn-javascript/lessons/scope/exercises/scoping?action=resume

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


#2

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

#3

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