This JavaScript tutorial explains how to use the Number property called MIN_VALUE with syntax and examples.
Description
In JavaScript, MIN_VALUE is a static property of the Number object that is used to return the smallest advantageous numeric price that is coming near 0 It does now not return a negative value. Because MIN_VALUE is a property of the Number object, it ought to be invoked through the object referred to as Number.
Syntax
In JavaScript, the syntax for the MIN_VALUE property is:
Number.MIN_VALUE;
Parameters or Arguments
There are no parameters or arguments for the MIN_VALUE property.
Returns
The MIN_VALUE property returns the minimum wonderful value that can be represented in JavaScript which is 5e-324. (ie: smallest positive numeric fee drawing close 0).
Note
Any price that is lower than MIN_VALUE will be transformed to zero via JavaScript. The MIN_VALUE property is a property of the Number object and now not a wide variety function. However, we have blanketed the MIN_VALUE property within our JS Number Methods section due to the fact you will most probably use this property in conjunction with the Number techniques observed in this section.
Example
Let’s take a seem at an example of how to use the MIN_VALUE property in JavaScript.
For example:
console.log(Number.MIN_VALUE);
In this example, we have invoked the MIN_VALUE property using the Number class.
We have written the output of the MIN_VALUE property to the internet browser console log, for demonstration purposes, to show what the MIN_VALUE property returns.
The following will be output to the web browser console log:
5e-324
In this example, the MIN_VALUE property returned a fee of 5e-324 which represents the smallest high quality numeric fee (approaching 0) that can be represented in JavaScript.
Leave a Review