Number PropertiesJavaScript provides several built-in properties for the Number object. These properties are constants that can be used to work with numerical values in JavaScript. Let's explore some of these important properties:
MAX_VALUE is a constant representing the largest positive number that JavaScript can handle.
MIN_VALUE is a constant representing the smallest positive number that JavaScript can handle.
POSITIVE_INFINITY is a constant representing the positive infinity value in JavaScript.
NEGATIVE_INFINITY is a constant representing the negative infinity value in JavaScript.
NaN represents "Not-a-Number", a special value used when a mathematical operation results in an undefined or unrepresentable value.
Click the buttons below to see the results of various JavaScript number properties in action:
MAX_VALUE, MIN_VALUE, POSITIVE_INFINITY, NEGATIVE_INFINITY, and NaN to deal with various special numeric cases.
Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!