Created
June 17, 2020 19:44
-
-
Save zeptobook/d56ca69dd2094790dbe1eeac43082727 to your computer and use it in GitHub Desktop.
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
person = null; | |
console.log(person?.[0]); // undefined | |
// or | |
person = ['adam', 'robert']; | |
console.log(person?.[2]); // undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment