Javascript numbers are primitive data types. It is used to represent the following numeric values such as:
Followings are the way of defining numbers in javascript:
Javascript numbers can be created using the Number() constructor function. You have to pass the number as an argument.
Source Code
const num1 = Number(150);
const num2 = Number(1212.55);