Alex Rivera | Logout

Does JavaScript have literal strings?

Asked 2010-03-31T14:24:42.090
60

In C#, Ruby, and many other languages you can denote a string as to not need escaping. In C# it’s like this

string s = @"\whatever\this\is";

The results are when printed:

\whatever\this\is

Is this supported in any form in JavaScript?

Edit
Report

1 Answer

172

Short answer: No

Long answer: Noooooooooooooooooooooooooo

answered 2010-03-31T14:26:52.790

Your Answer