Double Quotes

Hi. I’m either overlooking something very simple or what I want to do can’t be done. I want to set a variable to read: This is only a “test” using double quotes around the word test. I can get it to work using single quotes around test, but not doubles. I’ve tried:

var code = "This is only a \"test\""
var code = 'This is only a \"test\"'

and several other combinations, but can’t get it to show the way I want.

Thanks for the help!

works fine with me.
Tried to output ‘code’ into the console, which shows up fine
http://screencast.com/t/JeWNjkx3k5

Thanks for the reply, Marc. It’s working for me, too. I just didn’t think it was. I blame it on the fact that it’s kinda early… :oops:

gldni:
I blame it on the fact that it’s kinda early…

never mind, hope some coffee will do it’s work to have a better day :lol: