In JavaScript, are there any downfalls to declaring multiple variables on one line that depend on one another (besides readability)?
var string="Hello World",length=string.length,i=string.indexOf("World");
I have a string, then I get its length and then I also search for a string in it.
As long as they are in the right order, I should be fine, right? No strange behavior occurs in different JavaScript compilers?