DEV Community

loading...

Backticks in browser scripts

Ashok Mohanakumar
INTP | Full Stack Dev
・1 min read

Do all browsers (IE doesn't matter) support use of backticks in javascript

Eg; can I use

console.log(`Prics is Rs. ${price}`);

Enter fullscreen mode Exit fullscreen mode

Instead of

console.log('Prics is Rs.'+ price);
Enter fullscreen mode Exit fullscreen mode

Discussion (2)

Collapse
genejams profile image
{Gene}
Collapse
ashokcodes profile image
Ashok Mohanakumar Author

Thanks a lot!!