Checking for null and undefined

Learn about checking for results that are “null” and “undefined” or not “null” or not “undefined."

Checking for null

The project for this lesson contains two functions, getPerson and getCompany, that are being tested. A copy of the project’s code is in the code widget below:

Get hands-on with 1200+ tech skills courses.