TIL this is valid JavaScript:
const combined = append
`aa`
`bb`
`cc`();
// 'aabbcc'
See https://gist.github.com/michaelficarra/70ce798feb25fdc91508f387190053a1 … by @jspedant.
-
-
Replying to @mathias
Yeah, it gets weird. Any even number of backticks in a row is a valid JavaScript expression. ``````````````````````````````````````
1 reply 0 retweets 2 likes -
As long as you prefix that with an expression that resolves to a function
2 replies 0 retweets 2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.