Math operatior part 2

Multiplication



The multiplication operator (*) multiplies one number by the other.
var x = 10 * 5;
document.write(x);

// Outputs 50
Try It Yourself

10 * '5' or '10' * '5' gives the same result. Multiplying a number with string values like 'sololearn' * 5 returns NaN (Not a Number).
What character is used as the multiplication sign?
x
*
&

Comments

Popular posts from this blog

Introducing object part 3

Comparison Operators part 2

Module 2