+ 1

I am not able to use template string in Sublime 3 what can I do

I use like this const firstName='Name'; const age=22; const info=${firstName + age}; console.log(info); ??

4th Feb 2021, 4:15 PM
Madan Singh Bhandari
Madan Singh Bhandari - avatar
2 odpowiedzi
+ 3
template strings must be enclosed by backticks: const info = `${firstName + age}`;
4th Feb 2021, 4:18 PM
visph
visph - avatar
0
Thanks man🙏
5th Feb 2021, 1:08 PM
Madan Singh Bhandari
Madan Singh Bhandari - avatar