How get an apostrophe in a string in javascript

string query = “Guy “Shyam” Doing doing”;
IJavaScriptExecutor executor = (IJavaScriptExecutor)_webDriver;
executor.ExecuteScript(“arguments[0].CodeMirror.setValue(”" + query + “”);", FindElement(_by));

How to put query which contains "

it tried " but it won’t work.

Can someone please let me know.

This is very off-topic for this forum. You might get something out of this section of Eloquent JavaScript.