DSSSB TGT CS Mock 02 – Question 178

Question:

In JavaScript, what is the value of typeof NaN?

जावास्क्रिप्ट में typeof NaN का मान क्या होता है?

Options:

  • ‘number’
  • ‘undefined’
  • ‘NaN’
  • ‘object’
  • ‘number’
  • ‘undefined’
  • ‘NaN’
  • ‘object’

Correct Answer: a)

Explanation:

In JavaScript, despite standing for ‘Not-a-Number’, `NaN` is a special numeric value defined by the IEEE 754 floating point standard. Thus, `typeof NaN` evaluates to ‘number’ (Option a).

जावास्क्रिप्ट में NaN को IEEE 754 के अनुसार संख्यात्मक मान माना जाता है, इसलिए `typeof NaN` का मान ‘number’ होता है (विकल्प a)।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top