Episode 132 - Optional Chaining and nullish coalescing coming to Javascript, how useful are they and when can you use them?

The Backend Engineering Show with Hussein Nasser

Episode | Podcast

Date: Sun, 23 Feb 2020 14:05:49 GMT

<p>Some cool new features are coming to the Javascript language namely Optional chaining and nullish coalescing how useful are they? lets discuss</p> <p>So Optional chaining and nullish coalescing are coming to the Javascript language. I think it is already in the Javascript Engines (V8, SpiderMonkey, JavascriptCore and Chakra) which will be picked up by other clients such as browsers, node js , dino other stuff .. Cool stuff lets get into it.</p> <ul> <li>Show them (chrome devtools)</li> <li>Where is it available?</li> <li>Node JS not yet (13.9 V7.9) (<a href="https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V13.md#13.9.0">https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V13.md#13.9.0</a>)</li> </ul> <p>Resources</p> <p><a href="https://v8.dev/blog/v8-release-80">V8 release v8.0 ยท V8</a></p> <p><strong>Optional Chaining</strong></p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining</a></p> <p><strong>Nullish coalescing</strong></p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator</a></p>