Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js ?.

// '?.' is optional chaining
// It is used to access a value of an object, just like '.'
// However, if the value doesn't exist, it returns undefined, rather
// than an error
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
4+9 =