Today I will be discussing optional chaining.

Optional chaining is a new feature that was in es2020. If any of you are javascript lovers or developers, please check it out as there are great features that can be utilized within our code.

Okay…what is optional chaining then?

Optional chaining allows checking of deeply nested fields when the fields are being referenced in a statement. If one of the fields is undefined, the browser will crash due to referencing an undefined javascript field.

#web-development #javascript #es2020 #frontend #programming

What is optional chaining makes validation of fields easier Javascript
1.30 GEEK