paulmillr/es6-shim

Question: Template literals supported?

GitToTheHub opened this issue · 4 comments

I only wanted to ask, if template literals are supported, like this:

var myVar = "test";
console.log(`This is a ${myVar}`);

Thank for responding :)

It can't be polyfilled, it's a work for transpiler. For modern syntax support, use Babel.

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.";

That’s alwsys been part of JS, but yes.

In general, syntax must be transpiled; only API can be polyfilled.

Ok, thank you really much for your reply :)
Have a nice day :)