const obj = { foo: 1 };
obj.bar = 2;
function mystery(...params) {
return params;
}
let a = mystery(1,23,4);
let name = 'Harry';
let occupation = 'wizard';
console.log(`Hi! My name is ${name}. I'm a ${occupation}.`);
let x, { x: y = 1 } = { x }; y;
typeof (new (class F extends (String, Array) { })).substring
typeof (function* f() { yield f })().next().next()
let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]];