<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dev</title>
    <description>The latest articles on DEV Community by Dev (@deevoid).</description>
    <link>https://dev.to/deevoid</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F409380%2F9e511b76-5dd9-449f-8dcb-f82644c42a35.png</url>
      <title>DEV Community: Dev</title>
      <link>https://dev.to/deevoid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/deevoid"/>
    <language>en</language>
    <item>
      <title>A beginner friendly guide to optional chaining in Javascript</title>
      <dc:creator>Dev</dc:creator>
      <pubDate>Sat, 25 Jul 2020 16:48:14 +0000</pubDate>
      <link>https://dev.to/deevoid/a-beginner-friendly-guide-to-optional-chaining-in-javascript-4men</link>
      <guid>https://dev.to/deevoid/a-beginner-friendly-guide-to-optional-chaining-in-javascript-4men</guid>
      <description>&lt;h2&gt;
  
  
  Optional Chaining has become one of my favorite ES2020 features.
&lt;/h2&gt;

&lt;p&gt;Optional chaining allows you to safely access the nested object properties without the hassle to check validity of each one of them.&lt;br&gt;
&lt;strong&gt;Instead of using &amp;amp;&amp;amp; to check for null or undefined, directly use ?.&lt;/strong&gt;&lt;br&gt;
When you want to use an object's property you must check if it exists otherwise you may get a type error.&lt;br&gt;
Thus in ES2020 we have ?. operator which does the job for you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwtod8g3h5lhep1589ruk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwtod8g3h5lhep1589ruk.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So when are you going to use optional chaining next?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>optionalchaining</category>
      <category>beginners</category>
      <category>objects</category>
    </item>
  </channel>
</rss>
