Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Foundations Variables Null and Undefined

Nathan Clevenger
PLUS
Nathan Clevenger
Courses Plus Student 17,759 Points

myNullVariable === myUndefinedVariable???

I think I figured out what I was missing...!

2 Answers

Actually the code challenge says that the function is getting called even though those values are not identical. And your task is to stop that from happening. Which is what changing == to === accomplishes.

Nathan Clevenger
Nathan Clevenger
Courses Plus Student 17,759 Points

Thanks, Dino. I realized this right after posting but couldn't delete this question. Is there a way to do that?

The forum policy is not to delete questions so other students can benefit both from the questions and the answers.