Archive for the ‘Javascript’ Category

 

Multiline strings

December 22nd, 2008

Javascript is a very strange and often misunderstood language. One of the byproducts of the many different implementations are the many undocumented features. Among these is the very convenient, especially for fixture data, multi-line string. Here’s how you do it:

var s= "\
[...]

Read full article   »   No Comments