DEV Community

loading...

Discussion on: 💡 How to check if a variable is undefined in JS

benjaminmock profile image
Benjamin Mock Author

I see - but this is different. You're trying to access a non-existent property on a global object. That's of course not throwing a "Reference not defined" error, that's true.