I am surprised no one has already posted a question about this (or maybe I simply wasn't lucky googling this using all the possible vocabulary related to the subject).
Anyways, I have the following line of code in a javascript function:
...
document.getElementById("slideshowBox1").style.backgroundImage = "url('contest-winners-photos/" + (1 % sss) + ".jpg')";
...
where sss
is a global variable. And JSLint gives me the following warning at the corresponding line:
Unexpected '1'. box1.backgroundImage = "url('contest-winners-photos/" + (1 % sss) + ".jpg')";
Any idea what this warning could mean and what should I do about it?