Not able to pass this challenge

Tell us what’s happening:

Following the instruction properly but still don’t know what is the error in this code.

Your code so far

// Setup
var outerWear = "T-Shirt";

function myOutfit() {
// Only change code below this line

var myVar = "sweater";

outerWear = myVar;

// Only change code above this line
return outerWear;


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.

Challenge: Global vs. Local Scope in Functions

Link to the challenge:

Instead of making a local variable (myVar) and setting outerWear to it, you can redeclare outerWear as a local variable. I believe this is what the challenge is trying to get you to do.

Thanks a lot :grinning: