<?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>Forem: Lily Misra</title>
    <description>The latest articles on Forem by Lily Misra (@awesomecoder123).</description>
    <link>https://forem.com/awesomecoder123</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%2F421642%2Fbb67957d-f05c-4fc7-99e6-e5185ce303cd.png</url>
      <title>Forem: Lily Misra</title>
      <link>https://forem.com/awesomecoder123</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/awesomecoder123"/>
    <language>en</language>
    <item>
      <title>Intro to Functions In JS 💻</title>
      <dc:creator>Lily Misra</dc:creator>
      <pubDate>Thu, 15 Oct 2020 21:34:07 +0000</pubDate>
      <link>https://forem.com/awesomecoder123/intro-to-functions-in-js-3l35</link>
      <guid>https://forem.com/awesomecoder123/intro-to-functions-in-js-3l35</guid>
      <description>&lt;h1&gt;
  
  
  Function Expressions
&lt;/h1&gt;

&lt;p&gt;This function is pretty easy. Like for example if wanted to add two numbers together I would write this: &lt;/p&gt;


&lt;div class="ltag__replit"&gt;
  &lt;iframe height="550px" src="https://repl.it/@Awesomecoder121/Adder?lite=true"&gt;&lt;/iframe&gt;
&lt;/div&gt;


&lt;h1&gt;
  
  
  Name Necessities
&lt;/h1&gt;

&lt;p&gt;In functions, we usually have to pass an &lt;em&gt;argument(s)&lt;/em&gt; into the function. For example, &lt;code&gt;console.log()&lt;/code&gt; can is one of the many arguments to put into a function. Also when writing a function you also put in a pair of (), parentheses tell the computer that it's a function. Without the parentheses then the function couldn't work. &lt;/p&gt;

&lt;h1&gt;
  
  
  Arrow-functions
&lt;/h1&gt;

&lt;p&gt;There is a more modern function we can write called an arrow function. This is how to write one.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag__replit"&gt;
  &lt;iframe height="550px" src="https://repl.it/@Awesomecoder121/AdderArrowFxn?lite=true"&gt;&lt;/iframe&gt;
&lt;/div&gt;


&lt;p&gt;In arrow functions, the first thing we write is const which in Java Script is what we put to make a variable  after that we name it and put our variable names, then our arrow to make one you put an equal sign then put greater than sign. Then put in your "return" statement which in this case we are only want the code to do one thing other wise we do put a return statement, but we can get more into that in someother time for now just stick with the basic way. &lt;/p&gt;

&lt;p&gt;Anyways I hope you learned something! Let me know if you want a part 2!!! Thank you!!&lt;/p&gt;

&lt;p&gt;&lt;a class="comment-mentioned-user" href="https://dev.to/awesomecoder123"&gt;@awesomecoder123&lt;/a&gt;
           &lt;/p&gt;

</description>
      <category>functional</category>
      <category>codenewbie</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
