templates/007-js/constructors.js | ●●●●● Patch | Ansicht | Raw | Blame | Historie | |
templates/007-js/initialization.js | ●●●●● Patch | Ansicht | Raw | Blame | Historie |
templates/007-js/constructors.js
Neue Datei @@ -0,0 +1,8 @@ function Rectangle(a, b) { this.a = a; this.b = b; } const r = new Rectangle(2, 3); console.log(r.a); templates/007-js/initialization.js
Neue Datei @@ -0,0 +1,7 @@ var yes = false; if (yes) { var a = 1; } console.log(a);