Golfed join
const str = ['one','-','two'].join``;
console.log(str);
// outputs "one-two"
With tagged templates you can pass a template string to a function without parens.
const str = ['one','-','two'].join``;
console.log(str);
// outputs "one-two"
With tagged templates you can pass a template string to a function without parens.
const tabulaRecta = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
.replace(/./g,"$&$'$`\n");
const pre = document.createElement('pre');
document.body.appendChild(pre);
pre.innerHTML = tabulaRecta;
// technique comes from https://codegolf.stackexchange.com/a/87035/63485
This snippet comes from the the codegolf stackexchange. A little while back a challenge for printing a tabula recta popped up along with a very nice answer from user Neil. Take a look at the answer here.