Master AI & Build your First Coding Portfolio with SkillReactor | Sign Up Now

Lesson 5 - Basic Data Structures

5.3 Numbers

Numbers in JavaScript can be integers or floating-point numbers. However, unlike other programming languages, you don't need to specify the data type like integer or float.

Declaring numbers is very easy in JavaScript:

let x = 5;
let y = 3.14;
console.log(x);
console.log(y);