techarch (3) [Avatar] Offline
The example uses "var webstore" but if you do that then webstore will not be a global variable and on p. 16 you will not be able to type webstore in the console and get the instance back.
So you would need to remove "var" from the statement.
Erik Hanchett (34) [Avatar] Offline
Declaring it with var should have global scope on it. Is it not working for you?