3 ms·
FWIW If you're using JavaScript in PhotoShop the following produces an error because there's no semicolon after the second statement: for(i=10;i--) { /* do s
by earnubs 16y ago
FWIW If you're using JavaScript in PhotoShop the following produces an error because there's no semicolon after the second statement:
for(i=10;i--) { /* do stuff */ }
So maybe that's an example of a JS implementation where it differs on optional semicolons.
- lhorie 16y agoThat doesn't work in any javascript interpreter. Semi-colons aren't optional inside the parenthesis of a for statement, according to the spec. http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf http://www.ecma-international.org/publications/files/ECMA-ST... Section 7.9.2 (page 37)
- earnubs 16y agoDoh. Yes.