(function() {
let f = this ? class g { } : class h { };
return [ typeof f, typeof h ];
})();
(function() {
if (false) {
let f = { g() => 1 };
}
return typeof f;
})()
const PI = 3.14;
console.log(PI) // Gibt 3.14 aus
let titleElements = document.querySelectorAll('.article .title'); let titles = Array.from(titleElements).map( t => t.textContent ); console.log(titles);
let a = 12, b = 3;
[a, b] = [b, a];
class Slave { // ... };
const slave = Slave();
const [a, , b] = [1, 2, 3];
console.log(a, b);