DEV Community 👩‍💻👨‍💻

Ashok Mohanakumar
Ashok Mohanakumar

Posted on

Backticks in browser scripts

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

Top comments (2)

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

Thanks a lot!!

Find what you were looking for? Sign up so you can:

 
🌚 Enable dark mode
🔠 Change your default font
📚 Adjust your experience level to see more relevant content