Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JavaScript - Modulus with variables
#1
Code:
let a = 3;
let b = 2;
let c = a % b;

document.getElementById("demo").innerHTML = c;
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Messages In This Thread
JavaScript - Modulus with variables - by Qomplainerz - 04-04-2023, 07:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  JavaScript - Additions with variables Qomplainerz 0 473 04-04-2023, 08:05 AM
Last Post: Qomplainerz
  JavaScript - Subtractions with variables Qomplainerz 0 497 04-04-2023, 08:03 AM
Last Post: Qomplainerz
  JavaScript - Multiplications with variables Qomplainerz 0 486 04-04-2023, 08:01 AM
Last Post: Qomplainerz
  JavaScript - Divisions with variables Qomplainerz 0 499 04-04-2023, 08:00 AM
Last Post: Qomplainerz
  JavaScript - Exponentiations with variables Qomplainerz 0 488 04-04-2023, 07:58 AM
Last Post: Qomplainerz
  JavaScript - Modulus with values Qomplainerz 0 469 04-04-2023, 07:57 AM
Last Post: Qomplainerz
  JavaScript - Modulus with expressions Qomplainerz 0 404 04-04-2023, 07:56 AM
Last Post: Qomplainerz
  Additions with variables in JavaScript Qomplainerz 0 400 03-21-2023, 10:36 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 1 Guest(s)