0
A question about JavaScript
I have a question about this code. I donât know what â count++ % 2 ==0 â mean. Especially âcount++â. Is this like â0 % 2â and the next one is â1 %2â? It doesnât seem itâs looping and adding one to count variable. var count = 0; function clickMe(e) { if (count++ % 2 == 0) { e.textContent = âoâ; } else { e.textContent = âxâ; } }
3 Answers



