How to print a string that is a quotation in javascript


#1

He said,"Hello".
how do we write this in javascript


#2

Hi
it is not difficult at all
instead of using " to embrace your global string, you can also use the single '
so you can use the command
print 'He said,"Hello".'


#3

and for this : "I finished my first course!".


#4

in the same way
the single ' embraces the string that you want to print
print '"I finished my first course!"'


#5

Also you could "escape" them by using "Here comes a quote: \"quote\""