I’m not sure why people are so opposed to just answering the question. It’s a ternary operation. It’s a shortcut for an if/else clause. For this particular operation,
Is x equivalent (===) to images.length-1? If so, set X to 0. Otherwise, set X to x + 1.
This pattern is likely used to endlessly iterate over an array (images). Once it reaches the end, it resets to the first element in the array.
3
solved What does this line mean in JavaScript? [closed]