4.6.1. Operators and Operands¶
console.log(2 + 3);
console.log(2 - 3);
console.log(2 * 3);
console.log(2 ** 3);
console.log(3 ** 2);
//5
//-1
//6
//8
//9
/*The symbols + and -, and the use of parentheses for grouping, mean
in JavaScript what they mean in mathematics. The asterisk (*) is the
symbol for multiplication, and ** is the symbol for exponentiation.
Addition, subtraction, multiplication, and exponentiation all do what
you expect.*/