<?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: Anand gupta</title>
    <description>The latest articles on DEV Community by Anand gupta (@anandgupta193).</description>
    <link>https://dev.to/anandgupta193</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%2F200020%2Fe12cb36b-3170-46c1-8920-03b7c3ed9411.png</url>
      <title>DEV Community: Anand gupta</title>
      <link>https://dev.to/anandgupta193</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anandgupta193"/>
    <language>en</language>
    <item>
      <title>Why functions in Javascript are called as First Class Objects?</title>
      <dc:creator>Anand gupta</dc:creator>
      <pubDate>Sun, 19 Apr 2020 14:44:03 +0000</pubDate>
      <link>https://dev.to/anandgupta193/why-functions-in-javascript-are-called-as-first-class-objects-4i9o</link>
      <guid>https://dev.to/anandgupta193/why-functions-in-javascript-are-called-as-first-class-objects-4i9o</guid>
      <description>&lt;p&gt;Hey guys,&lt;/p&gt;

&lt;p&gt;This is by far one of the most basic question that creates confusion amongst many javascript developers.&lt;/p&gt;

&lt;p&gt;Here we go..&lt;/p&gt;

&lt;p&gt;"A function is said to be the first class citizens or objects in javascript when they have all the capabilities that an object has."&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Functions can be assigned to variables and properties like any other &lt;br&gt;
object in javascript.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Functions can be passed as an arguments into any other functions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An objects property can be a function (methods) or an array of &lt;br&gt;
functions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Functions can also be returned from another functions (closures).&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In javascript, we can construct new functions during execution of a program, storing them in data structures, passing them as arguments to other functions and returning them as a value of other functions.&lt;/p&gt;

&lt;p&gt;Thanks. :)&lt;/p&gt;

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