Javascript examples for Operator:Quiz
Find the remainder when 15 is divided by 9, using two variables x / y and the modulus operator %
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var x = 15;//from www . ja v a2 s .co m var y = 9; document.getElementById("demo").innerHTML = x % y; </script> </body> </html>