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

Smartphone icons created by Freepik - Flaticon

JavaScript Arithmetic

Arithmetic Operations

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

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