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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -