Passing string in function.. error HELP

Good Day!

can any body help me or explain me why java script function will not accept single quote?

here is the example



<input type=“button” onclick=“myfunction(‘Good Morning!’);” >
------------ this code is OK but
if the onclick value will have a single quote onclick="myfunction(‘Good Morning Jhon’s!’)

it will error: missing ) argument list.

this any way to fix this… is java script has a covert function like to convert single quotes?

Please help me im stuck, any explination on this