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
const PI = 3.14;
console.log(PI) // Печатает 3.14
let titleElements = document.querySelectorAll('.article .title'); let titles = Array.from(titleElements).map( t => t.textContent ); console.log(titles);
class Slave { // ... };
const slave = Slave();