function mystery(...params) {
return params;
}
let a = mystery(1,23,4);
(function() {
let f = this ? class g { } : class h { };
return [ typeof f, typeof h ];
})();
[...[...'...']].length
(function() {
if (false) {
let f = { g() => 1 };
}
return typeof f;
})()
typeof (function* f() { yield f })().next().next()
const PI = 3.14;
console.log(PI) //Prints 3.14
let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]];
class Slave { // ... };
const slave = Slave();
const [a, , b] = [1, 2, 3];
console.log(a, b);