JavaScript

> Benekastah
> Geek
> Languages

JsPerf: JavaScript performance playground. Utah JS.

Techniques

Docs. Testing. AltJS. Jobs. Harmony. Libs. JavaScript Garden. Although JavaScript deals fine with the syntax of two matching curly braces for blocks, it does not support block scope; hence, all that is left in the language is function scope. function test() { // a scope for(var i = 0; i < 10; i++) { // not a scope // count } console.log(i); // 10} There are also no distinct namespaces in JavaScript, which means that everything gets defined in one globally shared namespace.

Each time a variable is referenced, JavaScript will traverse upwards through all the scopes until it finds it.
Dustin Diaz. Mir.aculo.us JavaScript with Thomas Fuchs. Nodejs.