this post was submitted on 06 Jul 2023
547 points (97.4% liked)

Programmer Humor

19147 readers
1169 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

In Javascript you can do let a = undefined, defining the variale a as undefined.

A significant difference to defining it as null is that typeof null == "object", while typeof undefined == "undefined".