Comment Re:Javascript is actually a great language (Score 3, Informative) 531
- Variables are global by default, leading to accidental memory leaks, conflicts and various other fun things.
- A lack of namespaces.
- Lack of block scope (despite the fact the language has blocks), i.e:
function a() {
var b = 1;
{
var b = 2;
}
alert(b);
}will alert 2.