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}.`);
(function() {
let f = this ? class g { } : class h { };
return [ typeof f, typeof h ];
})();
(function() {
if (false) {
let f = { g() => 1 };
}
return typeof f;
})()
typeof (function* f() { yield f })().next().next()
let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]];
class Slave { // ... };
const slave = Slave();