---
title: "Ryan Shan (@ryanshan) | Hashnode"
description: "👨🏻‍💻 Full-time Software Engineer | ☕️  Fellow Coffee Lover. Read the latest articles by Ryan Shan on Hashnode."
url: "https://hashnode.com/@ryanshan"
---

@ryanshan

# Ryan Shan

@ryanshan · Joined January 2021

👨🏻‍💻 Full-time Software Engineer | ☕️ Fellow Coffee Lover

### [How to Check undefined or null in JavaScript (ES2020 way)](https://ryanshan.hashnode.dev/how-to-check-undefined-or-null-in-javascript-es2020-way?utm_source=hashnode&utm_medium=feed)

👋 Hey, there. What is the most common way you crash your program? For me, it's trying to de-reference null or undefined by accident. I still remember the first bug I created to crash a live website (bad idea to code in prod), staring at the 404 page...

4 min read · [ryanshan.hashnode.dev](https://ryanshan.hashnode.dev/how-to-check-undefined-or-null-in-javascript-es2020-way?utm_source=hashnode&utm_medium=feed)

[Feb 1, 2021](https://hashnode.com/posts/how-to-check-undefined-or-null-in-javascript-es2020-way/60175cf06f46cc1ff950aaae)
