Question: Template literals supported?
GitToTheHub opened this issue · 4 comments
GitToTheHub commented
I only wanted to ask, if template literals are supported, like this:
var myVar = "test";
console.log(`This is a ${myVar}`);
Thank for responding :)
zloirock commented
It can't be polyfilled, it's a work for transpiler. For modern syntax support, use Babel.
GitToTheHub commented
Ok, thank you for your reply!
Can i maybe use this syntax style:
var myString = "This is a very long string which needs \
to wrap across multiple lines because \
otherwise my code is unreadable.";
ljharb commented
That’s alwsys been part of JS, but yes.
In general, syntax must be transpiled; only API can be polyfilled.
GitToTheHub commented
Ok, thank you really much for your reply :)
Have a nice day :)