I found this in my RSS Reader this morning and thought it was a good reminder of how scope works in JavaScript.
http://madebyknight.com/javascript-scope/
I scored a 6 out of 7, because I failed to pay attention on the 2nd question
I found this in my RSS Reader this morning and thought it was a good reminder of how scope works in JavaScript.
http://madebyknight.com/javascript-scope/
I scored a 6 out of 7, because I failed to pay attention on the 2nd question
Me too! And that was after being shown to pay close attention to it! Again I’m shown I should read the whole of the OP!
I know right! That was probably the trickiest question of them all. I sat there dumbfounded that I got it wrong for a few seconds and then face palmed myself for making such a silly mistake. Glad I wasn’t the only one that missed that question
6-1. Failed on 3, Global Variables 1.