There are three multiplicative operators in Javascript: multiply, divide, and modulus.
If either of the operands for a multiplication operation isn't a number, it is converted to a number using the Number()
casting function.
An empty string is treated as 0, and the Boolean value of true is treated as 1.
The multiply operator is represented by an asterisk (*).
The syntax is:
let result = 34 * 56;
The multiply operator has the following unique behaviors when dealing with special values:
NaN
, the result is NaN
. NaN
. Number()
and then the other rules are applied.