DEV Community

sunflowerseed
sunflowerseed

Posted on

1 1

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

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.

Top comments (2)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

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?

Collapse
 
sunflower profile image
sunflowerseed

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

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

Explore this insightful write-up embraced by the inclusive DEV Community. Tech enthusiasts of all skill levels can contribute insights and expand our shared knowledge.

Spreading a simple "thank you" uplifts creators—let them know your thoughts in the discussion below!

At DEV, collaborative learning fuels growth and forges stronger connections. If this piece resonated with you, a brief note of thanks goes a long way.

Okay