Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
entropy_
· 14y ago · 0 comments
Then why oh why are variables global by
default
? (this is not meant as an attack on your point, I fully agree, I just find this awfully frustrating about JS. Sane languages have scoped by default and a global keyword, not the other way around)
Comments
[–]
aaronasterling
14y ago
You'd have to ask its designer. Sloppy programmers do like globals and JS was targeted for them.