isNaN( value )
Parameter Values: This method accepts a single parameter as mentioned above and described below:
- value: It is a required value passed in the isNaN() function.
Return Value: It returns a Boolean value i.e. returns true if the value is NaN else returns false.
Example: In this example, we will check various values for isNan() and the output will be in boolean format.
console.log(isNaN(0 / 0));
- Chrome 1 and above
- Firefox 1 and above
- Edge 12 and above
- Opera 3 and above
- Safari 1 and above
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!