675
=== (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] backhdlp@iusearchlinux.fyi 47 points 9 months ago* (last edited 9 months ago)

I still don't understand the === operator

Edit: I think a more type strict ==? Pretty sure I understand the point of typescript now.

[-] QuazarOmega@lemy.lol 68 points 9 months ago
> 1 == 1
true
> 1 == '1'
true
> 1 === '1'
false

(from node REPL)

Basically it's the real equals sign perfection

load more comments (23 replies)
this post was submitted on 25 Jan 2024
675 points (97.6% liked)

Programmer Humor

19488 readers
653 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS