const speed = 'quick'; `The ${speed} brown fox jumps over the lazy dog.`
function mystery(...params) {
return params;
}
let a = mystery(1,23,4);
let name = 'Harry';
let occupation = 'wizard';
console.log(`Hi! My name is ${name}. I'm a ${occupation}.`);
[...[...'...']].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);
const [a, , b] = [1, 2, 3];
console.log(a, b);