Sitemap

typeof null

1 min readDec 30, 2024

My monniker on twitter at the time of writing this piece is: typeof null and here’s why. About two years ago, I was taking a refresher course on Javascript ( I tend to do this almost every year). Something caught my attention when the conversion about null came up (again), it’s universally accepted that null is a mistake and even so one of the many reasons why Javascript is grossly hated.

For the first time, I could relate to null being the sole joy of sadness, being hated by everyone and everyone treating you like have no purpose. null means nothing and ordinarily that’s where the story of null would end but something caught by attention, while null is nothing, the typeof null is an object and an object has endless possibilities and even more so, it’s Javascript(a.k.a your environment) that provides this endless possibility.

Sometimes you have to zoom of our your current situation and maybe just add typeof and you might end up as an object with endless possiblities. For me:

const aremu = typeof null
aremu.blessed = true
aremu.favored = true
aremu.possiblities = "endless"

--

--

Aremu Oluwagbamila (SMOG)
Aremu Oluwagbamila (SMOG)

Written by Aremu Oluwagbamila (SMOG)

full time overthinker doing frontend things.

No responses yet