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

  • SEARCH
  • Home
  • 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 8191459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:55:28+00:00 2026-06-07T03:55:28+00:00

Particularly for localStorage.foo For Safari it is set to: undefined For Firefox it is

  • 0

Particularly for localStorage.foo

For Safari it is set to:

undefined

For Firefox it is set to:

null

Does anyone know the values for Chrome and IE?

Why is it different? Just random choices by browser programmers?

  • 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-06-07T03:55:29+00:00Added an answer on June 7, 2026 at 3:55 am

    It’s always undefined. Perhaps your observation method is what led you to believe the values are different in different browsers.

    Oh, I’ll qualify that statement for old versions of IE, which might do some other thing for all I know. I bet they use undefined also.

    Ah – Mr. Protagonist has an interesting point. On any normal object, a non-existent property will be null. However, Firefox does indeed seem to report null as the value of a non-existent property specifically of localStorage. Hmm… My vote would be that that’s a bug, but I’ll check the w3c spec (or proto-spec or whatever it is).

    The “value” undefined isn’t really a value; it’s more like the Buddhist mu — it’s kinda like saying, “what you asked for doesn’t make sense”. The value null in JavaScript is treated differently than undefined. Thus:

    var a = {};
    var b = a.banana;
    

    The variable “b” will be undefined. It’s weird, but it lets you tell the difference between a property being present but null and a property being missing. (Of course, the in operator lets you figure that out too.)

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

Sidebar

Related Questions

I don't particularly know if this is a good thing or not but I
Particularly does memoization decrease performance somewhat? Is performance increase linear? I have a function
In MySQL (particularly InnoDB) is there any way to know which tables were affected
Particularly I need to know ErrorLog Apache configuration setting from PHP script to show
I'm having a particularly odd issue when developing Chrome extensions using jQuery. I have
Particularly, does it use DPLL(T)? Does it use under/over approximations? Does it handle linear
This is not a particularly technical question, but is anyone else having problems with
Particularly i have this example but it does not seem to work : <!DOCTYPE
particularly when overriding Asp.net MVC ValidationAttribute, is it possible to know class name which
Particularly the bit about live.... jQuery('.something').live('click', function() { jQuery(this).parent('form').reset(); }); I suppose this might

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.