The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

techarch (3) [Avatar] Offline
#1
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
#2
Declaring it with var should have global scope on it. Is it not working for you?