#163 : Local Scope and Functions

#163 : Local Scope and Functions
0

#1

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


#2

Remove the console.log, as per the instructions.


#3

Yeah, tried that.


#4

MyVar needs to be declared with the var keyword.


#5

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


#6

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:


#7

Ah, yes! Rookie mistake. Thanks guys!