...

Fun with Numbers

Welcome to the world of numbers in JavaScript! Numbers are one of the most fundamental data types. They can represent whole numbers like 42, floating-point numbers like 3.14, and even negative numbers like -7.

Numbers can also be used with basic arithmetic operators:

  • + for addition
  • - for subtraction
  • * for multiplication
  • / for division

Run the code sample for an example.

Loading...

Output (Console)