Nullish coalescing (??) & Optional chaining (?.) in JS
Introduction
While writing JavaScript code we come across multiple errors like
TypeError: Cannot read property
TypeError: ‘undefined’ is not an object
TypeError: null is not an object
and these errors were caused when we try to reference a varia...
amankumr.hashnode.dev3 min read