exercise 1

Run Settings
LanguageJavaScript
Language Version
Run Command
console.log("Case 1"); function a() { var x=1; function b() { console.log("internal function", x); } ++x; b(); } a(); console.log("Case 2"); function a() { var x=1; function b() { console.log("internal function", x++); } ++x; return b; } a()(); console.log("Case 3"); function a() { var x=1; function b() { console.log("internal function", x++); } ++x; return b; } y=a(); y(); y(); y();
Editor Settings
Theme
Key bindings
Full width
Lines