You use the addition operator in a webpage for mathematical calculation. It helps in adding two values (numbers), which are also called operands, and together with the plus sign (+), they perform the addition.
Syntax:
let result = left_operand + right_operand;
Example:
let a = 10;
let b = 20;
let sum = a + b;
console.log("The sum is: " + sum);
Output:
