The number object contains a collection of useful properties and methods to work with Numbers. The properties include: MAX_VALUE (represents largest number that is available), MIN_VALUE (represents smallest number that is available), NaN (represents Not a Number), POSITIVE_INFINITY (special value to represent infinity), NEGATIVE_INFINITY (special value to represent negative infinity) and PI (represents value of π. To test whether the value in a variable is NaN or not, there is a method isNaN( var ), which returns true if the value in the specified variable is NaN and falseotherwise. To convert a Number to a String, use the method toString(
The post What is number object in java Script appeared first on Coding Security.
What is number object in java Script
read more
Tidak ada komentar:
Posting Komentar