Multiline strings in JavaScript
Posted by: ComponentArt WebLogs,
on 17 Oct 2007 |
View original | Bookmarked: 0 time(s)
Myth: You can't have a string literal stretch across two lines of text in JavaScript.Fact: You can have multiline string literals in JavaScript in all browsers.Multiline (or is it "multi-line"?) strings are a fringe feature of programming languages. They are very rarely needed, so a lot of languages don't support them at all (VB.NET). And even when a language does support them (C#), most programmers are not even aware of that. How often have you seen something like this in real...