/

HTML / CSS / JavaScript Tutorial

JavaScript Operator: divide

[this page | pdf | back links]

In JavaScript, the / operator is the (binary) arithmetic operator for division.

 

For example, if x is 9 then y = x / 2 results in y becoming 4.5.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Operators


Desktop view | Switch to Mobile