JavaScript Number Methods

JavaScript Number Methods


JavaScript Number Methods
In This tutorial you will learn about JavaScript Number() method is as follows: 
Number is a primitive wrapper object used to represent and manipulate numbers like 39 or -23.54.
Example
Output
 
Here is a list of built-in number methods in JavaScript.
 
Method 
 
Description
 
isNaN()
 
determines whether the passed value is NaN
 
isFinite()
 
determines whether the passed value is a finite number
 
isInteger()
 
determines whether the passed value is an integer
 
isSafeInteger()
 
determines whether the passed value is a safe integer
 
parseFloat(string)
 
converts the numeric floating string to floating-point number
Example
Output