Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6365717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:19:44+00:00 2026-05-25T00:19:44+00:00

We can do: NaN = ‘foo’ as well as undefined = ‘foo’ Why are

  • 0

We can do:

NaN = 'foo'

as well as

undefined = 'foo'

Why are they not reserved keywords?

  1. I think it should be implemented in order to be sure that when we are looking for a number, it is a number 🙂

  2. If we should use IsNaN() or typeof, why are NaN or undefined needed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:19:44+00:00Added an answer on May 25, 2026 at 12:19 am

    https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN

    NaN is a property of the global object.

    The initial value of NaN is Not-A-Number — the same as the value of
    Number.NaN. In modern browsers, NaN is a non-configurable,
    non-writable property. Even when this is not the case, avoid
    overriding it.

    https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined

    undefined is a property of the global object, i.e. it is a variable in global scope.

    The initial value of undefined is the primitive value undefined.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone explain this to me? In C# double.NaN is not equal to double.NaN
How can we use them in our codes, and what will cause NaN(not a
Can anyone work out why this does not work. Produces NAN and if reset
if we set float and double type to NaN then they are not equal
How can I determine if a Cocoa NSNumber represents NaN ( not a number
can you recommend some good ASP.NET tutorials or a good book? Should I jump
how can I replace the NaN value in an array, zero if an operation
It is often hard to find the origin of a NaN, since it can
Can I set an int to NaN ? If yes, then how can I
Can someone please explain the steps this program takes and the order in which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.