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 hussein-kadhim.netlify.app #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
3+9 =