Division in JavaScript
Level 120 keystrokes
Divides 20 by 4 and prints the result, 5.
JavaScript code
// The / operator divides the left number by the right one: 20 / 4 is 5// Division is not limited to integers: 7 / 2 would give 2.51console.log(20 / 4);Output
5
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this JavaScript code and how often they appear.
;× 1.× 1(× 1)× 1/× 1