const obj = { foo: 1 };
obj.bar = 2;
let x, { x: y = 1 } = { x }; y;
(function() {
let f = this ? class g { } : class h { };
return [ typeof f, typeof h ];
})();
[...[...'...']].length
(function() {
if (false) {
let f = { g() => 1 };
}
return typeof f;
})()
let titleElements = document.querySelectorAll('.article .title'); let titles = Array.from(titleElements).map( t => t.textContent ); console.log(titles);
let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]];