Math operator part 3

Division



The / operator is used to perform division operations:
var x = 100 / 5;
document.write(x);

// Outputs 20
Try It Yourself

Remember to handle cases where there could be a division by 0.
Enter the character designated for division:
 
 /

Comments

Popular posts from this blog

Introducing object part 3

Comparison Operators part 2

Module 2