Sascha Schulz
2023-04-18 b333a022d7369cfe2c9290122b01e68196a9d34d
add js examples
2 Dateien hinzugefügt
15 ■■■■■ Geänderte Dateien
templates/007-js/constructors.js 8 ●●●●● Patch | Ansicht | Raw | Blame | Historie
templates/007-js/initialization.js 7 ●●●●● 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);