String data type is always placed within quotes which is either single or double quotes.
var str = ‘Hello TutorialsLink!’; var str1 = “Hello TutorialsLink!”
We can also use quotes inside a string which is already surrounded by a pair of quotes, as long as they don’t match that quotes which are surrounding the string.
var str = “Hello ‘TutorialsLink!’ ”;
<html> <head> </head> <body> <script> var str = 'Welcome \' TutorialsLink! \''; document.write(str); </script> </body> </html>