1. Introduction
After completing this module, you are expected to use some of the Number Objects to manipulate data
In programming, numerical values are considered “primitive” because they have no intrinsic properties. Imagine an integer whose only value is the numerical value that it represents. They are unlike strings and arrays who have other values and aside from the values that they represent. An example is the length property that is built-in for both string and array data types and the toUpperCase() method built-in for the string data type. Numbers have no such properties built-in for them. Programmers have to create separate functions or declare them as objects in order to achieve this.
But in JavaScript, numbers are treated as objects, called the Number() object, thus allowing numerical data types such as integers and floats to have properties and methods. This module will discuss the different properties and methods available for the Number() object.