This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

JavaScript Arithmetic

A typical arithmetic operation takes two numbers (or variables) and produces a new number.

let a = 100;
let b = 50;
let x = a + b;
document.getElementById("demo").innerHTML = x;