MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/jic377/javascript_string/ga6pk4y/?context=3
r/learnjavascript • u/tutorialstonight • Oct 26 '20
javascript string 🔥
https://www.tutorialstonight.com/js/js-string.php
31 comments sorted by
View all comments
2
with the mention that you need backticks when you need a variable inside the string
i.e.: let variable = "string"
"this is a ${variable}" will log as"this is a ${variable}"
whilst
'this is a ${variable}' (read it as backtiks cant find it on mobile) will log as "this is a string"
2
u/Kesar13 Oct 26 '20
with the mention that you need backticks when you need a variable inside the string
i.e.: let variable = "string"
"this is a ${variable}" will log as"this is a ${variable}"
whilst
'this is a ${variable}' (read it as backtiks cant find it on mobile) will log as "this is a string"