➕division (/)
JS ⟩ operator ⟩ arithmetic ⟩ division (/)
a / b    // floating-point division/ operator 👉 table of operators
- (all numbers are floating-point) all division have floating-point results. ( - 5/2 === 2.5)
- division by zero yields ±infinity (no error)❗ 
- 0/0 evaluates to NaN (no error)❗ 
💡neither of these cases raises an error❗
- replit:division (a / b) 
 5 / 2,    // 2.5
 3 / 0,    // Infinity
-2 / 0,    // -Infinity
 0 / 0,    // NaN- ⛔ possible errorrs 
Last updated
Was this helpful?