function mystery(...params) {
return params;
}
let a = mystery(1,23,4);
[...[...'...']].length
(function() {
if (false) {
let f = { g() => 1 };
}
return typeof f;
})()
typeof (function* f() { yield f })().next().next()
const PI = 3.14;
console.log(PI) // Gibt 3.14 aus
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];