YouTip LogoYouTip

Jsref Number Nan

JavaScript NaN Property

JavaScript NaN Property

-- Learning is not just about technology, but also about dreams!

JavaScript Reference

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

JavaScript Math Object

JavaScript String Object

Deep Dive

  • Web Browser
  • Script
  • Scripting Language
  • Programming Language
  • Script
  • Web Service
  • Computer Science
  • Programming
  • Software
  • Web Design and Development

JavaScript NaN Property

Number Object Reference JavaScript Number Object


Definition and Usage

The NaN property represents a special value that is not a number. This property indicates that a value is not a legal number.

The Number object can be set to this value to indicate that it is not a numeric value.

Tip: Use the isNaN() global function to determine whether a value is a NaN value.

Syntax

Number.NaN

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the NaN property.


Technical Details

Return Value: NaN
JavaScript Version: 1.3

Number Object Reference JavaScript Number Object

← Jsref Positive InfinityJsref Negative Infinity β†’