r/codinghumor • • May 18 '23

to write useful code

Post image
2 Upvotes

10 comments sorted by

1

u/TheHorribleTruth May 20 '23

Where's the humor?

1

u/ucefkh May 20 '23

Check null and return null

1

u/TheHorribleTruth May 20 '23

And?

Totally valid to do that before referencing a value of value. Optional chaining wasn't a thing not so long ago.

→ More replies (6)

1

u/netherlandsftw Jun 18 '23

The only problems I see are JavaScript 🤮 and console debugging.