const obj = { foo: 1 };
obj.bar = 2;
function mystery(...params) {
return params;
}
let a = mystery(1,23,4);
let x, { x: y = 1 } = { x }; y;
(function() {
let f = this ? class g { } : class h { };
return [ typeof f, typeof h ];
})();
typeof (new (class F extends (String, Array) { })).substring
(function() {
if (false) {
let f = { g() => 1 };
}
return typeof f;
})()
const PI = 3.14;
console.log(PI) // Gibt 3.14 aus
let a = 12, b = 3;
[a, b] = [b, a];