TIL this is valid JavaScript:
const combined = append
`aa`
`bb`
`cc`();
// 'aabbcc'
See https://gist.github.com/michaelficarra/70ce798feb25fdc91508f387190053a1 … by @jspedant.
You can try/catch a syntax error: try { Function(code); success(); } catch (exception) { failure(); }
-
-
ok, yeah, but ugggggh :)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.