Tag Archives: Performance
Splitting a long JavaScript String across multiple lines
Whilst reading a comment by Mike DeBoer on Ajaxian about delimiting JavaScript strings with backslashes, I thought it’s worth mentioning it here as well, if only to remind myself. String concatenation always creates a new string. Thus, writing: var str = … Continue reading