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 ];
})();
[...[...'...']].length
const PI = 3.14;
console.log(PI) // Imprime 3.14
let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]];