Understanding new template strings and string functions that are part of ES6 / ES 2015 release.
– Introduction to template string
– interpolation in string templates
– Tagged string templates
– New functions such as startsWith, endsWith, includes, repeat and String.raw
startsWith endsWith includes repeat
Original source
15 responses to “javascript tagged template strings in ES6 (new string functions tutorial )”
Js magic
javascript startswith is not supported in IE11, when using Field from redux form. How can we fix it ?
love you so much bro ….. your knowledge taught me so much things … thank so much… best teacher on youtube for programming language…
Thx
Very helpful
Thanks.
Can u please make some video related with javascript datastructure?
great tutorial thanks and when will you make more videos?
هلا باليلعب جوبي
أي مو تكرم فدتنا بصراحة
Thanks Sir, Its interesting to learn
Extremely Helpful, Very Simple and Awesome tutorials And Please add more
thank you
You make the best videos about JavaScript! You've helped me learn so much of something I've put off for too long.
Well done.. Bravo!!!
Thanks again,
However this line:
let raw = String.raw' Not a newline:n';
didn't work in my latest version of Chrome browser.
I actually have a native function named String.raw:
function raw() { [native code] }
but it doesn't accept th line
(getting an error: "Uncaught SyntaxError: Unexpected string")
Thanks sir.. Great Tutorial 🙂