In comp.lang.javascript message <46***********************@news.free.fr>
, Sun, 5 Aug 2007 09:36:25, gizz <gi**@nospam.orgposted:
>Is there a difference between :
var myStr = "This is some text" ;
and,
var myStr = 'This is some text' ;
Is it *exactly* the same for the JS engine ?
As is, yes. But in the first you can insert 'cat' and in the second you
can insert "cat" But \'cat\' and \"cat\" can be inserted into both.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)