Optional chaining in JavaScript
Originally posted here!
Optional chaining operator (?.) is a new addition in JavaScript where it helps to checks if a property, method etc is present or not.
Let's look at an example to get to know more.
Let's create an object called John with the p...
melvingeorge-me.hashnode.dev5 min read