javascript - Is assignment simultaneous to indexing valid? -
i discovered line , i'm wondering if it's valid code. please note don't wonder - that's obvious. want know if it's ok code, academically speaking (and mean validity lies in compliance standard or @ least accepted practice). know works in browsers needs to.
target.src = urls[index = ++index % urls.length];
yes (more characters validator)
Comments
Post a Comment