<?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: Roman Moravcik</title>
    <description>The latest articles on DEV Community by Roman Moravcik (@shyclown).</description>
    <link>https://dev.to/shyclown</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%2F231759%2Fcaf475d3-66cb-4a61-b092-6fd931995361.jpeg</url>
      <title>DEV Community: Roman Moravcik</title>
      <link>https://dev.to/shyclown</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shyclown"/>
    <language>en</language>
    <item>
      <title>Arrow Function is not Replacement For function(){}</title>
      <dc:creator>Roman Moravcik</dc:creator>
      <pubDate>Wed, 22 Sep 2021 13:06:13 +0000</pubDate>
      <link>https://dev.to/shyclown/arrow-function-is-not-replacement-for-function-32d6</link>
      <guid>https://dev.to/shyclown/arrow-function-is-not-replacement-for-function-32d6</guid>
      <description>&lt;p&gt;I have seen so many low effort articles that pretend to teach you about arrow functions and then they end up just show you how function was written before ES6 and then glorified new arrow function.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function(x) { return x }  // regarded as old 
x =&amp;gt; x // hip new function in ES6
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is so frustrating, because you can get wrong impression that there is no difference in how they work.&lt;/p&gt;

&lt;p&gt;I am making this post just so people are aware that there are more differences between these two functions and they should take deeper look into documentation. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions"&gt;MDN&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
