As we illustrated earlier, strings must be written with quotes. Let's see what happens when we create a variable and put quotes inside of the string.
var y = "We are the best "players" in the country.";
document.getElementById("demo").innerHTML = y;
Here we have placed quotes around the word players in our sentence.
If we preview this file in our web browser, we can see that the text does not output as it should.
To eliminate this issue, we need to use the backslash escape character.
var y = "We are the best \"players\" in the country.";