Optional Chaining
The optional chaining in JavaScript allows you to access nested properties and methods of an object without checking if each property exists. This can help to make your code more concise and easier to read. The optional chaining operator (?.) is sued to achieve optional chaining in JavaScript. It is placed before the property or […]