Created
May 23, 2018 16:31
-
-
Save jpitchardu/76ed632ec5295ae9316252e141d33fbb to your computer and use it in GitHub Desktop.
Type Error in JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let obj; | |
console.log(obj.someProp); // => TypeError: Cannot read property 'someProp' of undefined | |
obj = null; | |
console.log(obj.someProp); // => TypeError: Cannot read property 'someProp' of null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment