const speed = 'quick'; `The ${speed} brown fox jumps over the lazy dog.`
function mystery(...params) {
return params;
}
let a = mystery(1,23,4);
let x, { x: y = 1 } = { x }; y;
[...[...'...']].length
typeof (new (class F extends (String, Array) { })).substring
typeof (function* f() { yield f })().next().next()
const PI = 3.14;
console.log(PI) // Imprime 3.14
let titleElements = document.querySelectorAll('.article .title'); let titles = Array.from(titleElements).map( t => t.textContent ); console.log(titles);
let a = 12, b = 3;
[a, b] = [b, a];
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);