The new javascript template syntax is great. Super readable and powerful. I\'d like to start using it.
I tried this template:
function addGalleryItem(ima
You can't use try...catch statement to catch syntax errors, because they are thrown even before the code is executed.
You either have to drop support for browsers which doesn't support template literals or use Babel.