As we're aware strings must be written within quotes.
Let's see what happens when we create a variable and put quotes inside of the string in this example.
We've placed quotes around the word players in our sentence if we go ahead and preview this file in
our web browser
we can see here that the text does not output as it should to eliminate this issue.
We need to use the backslash escape character
we must put one before the initial quote
one over here.
Now when we save the file and refresh our web browser we can see that the sentence correctly displays
with quotations around the word player's
and that is how you deal with special characters that you have issues with in JavaScript output.