Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can access global variables as normal, but you can't implicitly declare them by doing `myGlobaVar = 5` - you have to use `window.myGlobalVar`.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: