Numbers
JavaScript has one number type for both integers and decimals (floating-point numbers).
Integer and Float
Loading JavaScript Playground...
Basic Arithmetic
Loading JavaScript Playground...
Special Number Values
Loading JavaScript Playground...
Math Object
JavaScript's built-in Math object has useful functions:
Loading JavaScript Playground...
Exercise: Calculate Area
Calculate the area of a rectangle:
Loading JavaScript Exercise...
Exercise: Temperature Conversion
Convert Celsius to Fahrenheit (F = C * 9/5 + 32):
Loading JavaScript Exercise...
Up next · Lesson 6 of 37
Strings
1 min read
5 of 37 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

