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 9069181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:21:42+00:00 2026-06-16T17:21:42+00:00

I have just started playing the Azure Mobile Services stuff. It’s super cool however

  • 0

I have just started playing the Azure Mobile Services stuff. It’s super cool however there are a few weird things I have noticed while trying to change the server side database scripts. One specific thing is that while writing a simple statement like:

if (results.length == 0)

it warned me saying that I should use === instead of == while comparing with zero.

Anyone know why that is?

  • 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-16T17:21:43+00:00Added an answer on June 16, 2026 at 5:21 pm

    In loosely-typed languages, it’s often useful to use === (strict equality operator) rather than == (equality operator), because otherwise the types of objects will be coerced during the equality check.

    For example, "0" == 0, and "" == 0, and [] == 0.

    However, none of those === 0.

    So if results happened to be an object with an empty property length, like so:

    var results = {
      length: ""
    }
    

    results.length == 0 would still evaluate to true.

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

Sidebar

Related Questions

Hello! I have just started playing with android layouts and i wonder if there
I have just started playing with Ruby and I'm stuck on something. Is there
i have just started playing aorund with asp.net mvc and i want to view
I have just started playing with Microsoft's 08/2010 WPF Ribbon release. The basics appear
I just started playing with scala and have been using the Scala By Example
I just started playing with memcache(d) last night so I have a LOT to
I'm having a great time playing around with knockout js and have just started
I have just started playing with TeamCity and its great. Now I got it
I'm new to cmake and have just started playing around with it. My problem
I´ve just started playing around with Java and Hibernate and have gotten an application

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.