How to Use Backslash to Escape Quotation Marks in JavaScript: Preventing it From Becoming a String

Sometimes you’re going to want to do something in between quotes but you don’t want it to turn into a string with all the rest. What you want to do is use the backslash (\) along with a special character designated in JavaScript to perform a certain task. This is what’s called escaping the character. … Read more

How to Make a String in JavaScript: Using Backticks, Double-Quotes, and Single Quotes

Strings represent text and they are usually enclosed within quotation marks. Here are some examples below: This is a string made using a pair of backticks (`…`) This is a string made using a pair of double-quotes. Finally, this is a string made using single quotes. One thing to note is that it’s important to … Read more