JavaScript Fundamentals: Checking for null and undefined

The primitive values null and undefined have a distinct difference that should be used. But how to you tell the difference between a null value, an undefined value and other falsey values? We will address it in this tutorial.

Would you like to help keep this channel going?
http://allthingsjavascript.com/contribute.html

Access to EVERY course (get 2 months free): https://www.skillshare.com/r/profile/Steven-Hancock/24508

Courses offered on Udemy at a discount (access from my site): http://allthingsjavascript.com/courses.html

Tutorials referred to in this video:
null and undefined: https://youtu.be/71eG2xEYO5E
coersion: https://youtu.be/z4-8wMSPJyI
Equality operators: https://youtu.be/zYQ0ePou-no
truthy and falsey: https://youtu.be/HvBg2I2pfhQ
ternary operator: https://youtu.be/Sa7E1yRHsIU

Article referred to in this tutorial: https://medium.com/javascript-in-plain-english/how-to-check-for-null-in-javascript-dffab64d8ed5

For more resources on JavaScript:
http://www.allthingsjavascript.com

#javascript #AllThingsJavaScriptLLC

Post Author: hatefull