Stupid question

what is ++, %, – meaning?

var num1 = 2;
var num2 = 4;
var total = ??? ;
document.write(total);

++ var total = ++num2
print : 5

print : 3
%
what is % doing

All your questions about arithmetic operators are well covered here

1 Like

And also here:

1 Like


thanks

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.