What is the difference between the three quotation marks in the js string
This article introduces the relevant knowledge of "what is the difference between the three quotation marks in the js string". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Strings can be enclosed in single quotation marks, double quotation marks, or backquotes.
2. Single quotation marks and double quotes are basically the same. Backquotation marks allow us to pass ${... } embed any expression in the string. Allows string wrapping.
Example
/ / usage / / you can insert variables and expressions var a = "Hello"; alert (`$ {a} World`); / / Hello World / / you can wrap the line let row = `first line Second line Third line`; "what's the difference between the three quotation marks in the js string?" that's it. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!