const obj = { foo: 1 };
obj.bar = 2;
let name = 'Harry';
let occupation = 'wizard';
console.log(`Hi! My name is ${name}. I'm a ${occupation}.`);
let x, { x: y = 1 } = { x }; y;
[...[...'...']].length
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);