Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mostlystatic
on April 7, 2013
|
parent
|
context
|
favorite
| on:
JavaScript Scope Context Coloring
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: