QP School

Full Version: JavaScript - Modulus with variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
let a = 3;
let b = 2;
let c = a % b;

document.getElementById("demo").innerHTML = c;