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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
2+5 =