675
=== (programming.dev)
submitted 7 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 47 points 7 months ago* (last edited 7 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.

[-] [email protected] 68 points 7 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

19111 readers
540 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