#163 : Local Scope and Functions


Having trouble resolving this challenge. I’ve read and tried every suggestion and nothing works. Any help would be greatly appreciated.


Remove the console.log, as per the instructions.


Yeah, tried that.


MyVar needs to be declared with the var keyword.


If you mean pass myVar the value, then I tried that too without success. Otherwise not sure what you mean.


I believe he means you need to declare the variable before you can reference it. You can read up on the ins and outs using these links :slight_smile:


Ah, yes! Rookie mistake. Thanks guys!