Poll: Do you know in JavaScript, what `a == null` is for, exactly?
sunflowerseed

sunflowerseed @sunflower

About: Front End Dev

Joined:
Jan 15, 2020

Poll: Do you know in JavaScript, what `a == null` is for, exactly?

Publish Date: Mar 17 '20
5 3

Poll: what does a == null do exactly in JavaScript?

  1. I know exactly what it does.
  2. I have some ideas, but not exactly.
  3. I don't know exactly what it does.
  4. I don't know exactly what it does before today.

you can add what it does in the answer as well.

Comments 3 total

  • Pacharapol Withayasakpunt
    Pacharapol WithayasakpuntMar 17, 2020

    No, I just can't predict about == in JavaScript, so number 3.

    Also, and interestingly, is there a performance difference, or just convenience for type coercion?

    • sunflowerseed
      sunflowerseedMar 17, 2020

      good answer... I think the cases with == is just so highly unpredictable... and so many different cases

Add comment