<?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: Mahendra Bishnoi</title>
    <description>The latest articles on DEV Community by Mahendra Bishnoi (@browncoder).</description>
    <link>https://dev.to/browncoder</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%2F547903%2F621b3fe2-586e-4701-bcc9-cc1dabedbac6.jpeg</url>
      <title>DEV Community: Mahendra Bishnoi</title>
      <link>https://dev.to/browncoder</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/browncoder"/>
    <language>en</language>
    <item>
      <title>7 reasons why you should start using React.</title>
      <dc:creator>Mahendra Bishnoi</dc:creator>
      <pubDate>Fri, 03 Sep 2021 17:31:02 +0000</pubDate>
      <link>https://dev.to/browncoder/7-reasons-why-you-should-start-using-react-1an0</link>
      <guid>https://dev.to/browncoder/7-reasons-why-you-should-start-using-react-1an0</guid>
      <description>&lt;p&gt;1.&lt;strong&gt;Speed&lt;/strong&gt;&lt;br&gt;
  &lt;em&gt;React offers faster rendering. When you are building larger &lt;br&gt;
  applications, it's critical to monitor the changes. So react &lt;br&gt;
  helps to maintain high application performance and provide a &lt;br&gt;
  better user experience.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;Flexibility&lt;/strong&gt;&lt;br&gt;
  &lt;em&gt;Most companies use React to save a large amount of time. This is &lt;br&gt;
  because react codes are simpler to manage due to their modular &lt;br&gt;
  nature than other front-end frameworks.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;3.&lt;strong&gt;Performance&lt;/strong&gt;&lt;br&gt;
  &lt;em&gt;React JS makes complex applications run extremely fast because &lt;br&gt;
  it was designed to provide high performance in mind.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;4.&lt;strong&gt;Usability&lt;/strong&gt;&lt;br&gt;
  &lt;em&gt;If you know JavaScript, deploying React application is quite &lt;br&gt;
  easy to achieve, and since React is fast, you can make new &lt;br&gt;
  changes to the application and deploy again within minutes.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;5.&lt;strong&gt;Supports both mobile and web development&lt;/strong&gt;&lt;br&gt;
 &lt;em&gt;Hold up; we are not yet over. Not only web development, even &lt;br&gt;
  React supports mobile development using react-native to build &lt;br&gt;
  native applications for BOTH Android and iOS platforms.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;6.&lt;strong&gt;Easy to learn&lt;/strong&gt;&lt;br&gt;
  &lt;em&gt;To be honest, it took me a while (days….)to learn Angular, but &lt;br&gt;
  trust me. I learned to React in HOURS because React was much &lt;br&gt;
  easier to learn than other front-end frameworks out there, and &lt;br&gt;
  on top of that, React is way more popular and used nowadays.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;7.&lt;strong&gt;Build rich user interfaces&lt;/strong&gt;&lt;br&gt;
  &lt;em&gt;How the user interface looks at the end of the day matters a &lt;br&gt;
  lot. If your user interface doesn’t look good, then the chances &lt;br&gt;
  for your app to succeed will be below. So building rich user &lt;br&gt;
  interfaces matters, and as usual, React got your back. React &lt;br&gt;
  allows building such high-quality, rich user interfaces through &lt;br&gt;
  its declarative components.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The Difference Between Arrays and Objects(simplest explaination).</title>
      <dc:creator>Mahendra Bishnoi</dc:creator>
      <pubDate>Sun, 29 Aug 2021 16:04:45 +0000</pubDate>
      <link>https://dev.to/browncoder/the-difference-between-arrays-and-objects-simplest-explaination-3je0</link>
      <guid>https://dev.to/browncoder/the-difference-between-arrays-and-objects-simplest-explaination-3je0</guid>
      <description>&lt;p&gt;In JavaScript, &lt;em&gt;arrays&lt;/em&gt; use numbered indexes.  &lt;/p&gt;

&lt;p&gt;In JavaScript, &lt;em&gt;objects&lt;/em&gt; use named indexes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Arrays&lt;/strong&gt; are a special kind of &lt;strong&gt;objects&lt;/strong&gt;, with numbered indexes.&lt;/p&gt;

&lt;p&gt;When to Use &lt;strong&gt;Arrays&lt;/strong&gt;. When to use &lt;strong&gt;Objects&lt;/strong&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;JavaScript does not support associative arrays.&lt;/li&gt;
&lt;li&gt;You should use objects when you want the element names to be strings (text).&lt;/li&gt;
&lt;li&gt;You should use arrays when you want the element names to be numbers.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What The Hack is "This" Keyword in JavaScript.🤔</title>
      <dc:creator>Mahendra Bishnoi</dc:creator>
      <pubDate>Sat, 28 Aug 2021 12:16:13 +0000</pubDate>
      <link>https://dev.to/browncoder/what-the-hack-is-this-keyword-in-javascript-269m</link>
      <guid>https://dev.to/browncoder/what-the-hack-is-this-keyword-in-javascript-269m</guid>
      <description>&lt;h1&gt;
  
  
  What is this?
&lt;/h1&gt;

&lt;p&gt;The JavaScript this keyword refers to the object it belongs to.&lt;/p&gt;

&lt;p&gt;It has different values depending on where it is used:&lt;/p&gt;

&lt;p&gt;In a method, this refers to the owner object.&lt;br&gt;
Alone, &lt;em&gt;this&lt;/em&gt;  refers to the global object.&lt;br&gt;
In a function, &lt;em&gt;this&lt;/em&gt;  refers to the global object.&lt;br&gt;
In a function, in strict mode, &lt;em&gt;this&lt;/em&gt; is undefined.&lt;br&gt;
In an event, &lt;em&gt;this&lt;/em&gt; refers to the element that received the event.&lt;br&gt;
Methods like call(), and apply() can refer &lt;em&gt;this&lt;/em&gt; to any object.&lt;/p&gt;



&lt;p&gt;this in a Method&lt;br&gt;
In an object method, this refers to the "owner" of the method.&lt;/p&gt;

&lt;p&gt;In the example on the top of this page, this refers to the person object.&lt;/p&gt;

&lt;p&gt;The person object is the owner of the fullName method.&lt;br&gt;
EXAMPLE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fullName : function() {
  return this.firstName + " " + this.lastName;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;this Alone&lt;br&gt;
When used alone, the owner is the Global object, so this refers to the Global object.&lt;/p&gt;

&lt;p&gt;In a browser window the Global object is [object Window]:&lt;/p&gt;

&lt;p&gt;EXAMPLE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let x = this;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;In strict mode, when used alone, this also refers to the Global object [object Window]:&lt;/p&gt;

&lt;p&gt;EXAMPLE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"use strict";
let x = this;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;this in a Function (Default)&lt;br&gt;
In a JavaScript function, the owner of the function is the default binding for this.&lt;/p&gt;

&lt;p&gt;So, in a function, this refers to the Global object [object Window].&lt;/p&gt;

&lt;p&gt;EXAMPLE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function myFunction() {
  return this;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;this in a Function (Strict)&lt;br&gt;
JavaScript strict mode does not allow default binding.&lt;/p&gt;

&lt;p&gt;So, when used in a function, in strict mode, this is undefined.&lt;/p&gt;

&lt;p&gt;EXAMPLE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"use strict";
function myFunction() {
  return this;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;this in Event Handlers&lt;br&gt;
In HTML event handlers, this refers to the HTML element that received the event:&lt;/p&gt;

&lt;p&gt;EXAMPLE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button onclick="this.style.display='none'"&amp;gt;
  Click to Remove Me!
&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;Object Method Binding&lt;br&gt;
In these examples, this is the person object (The person object is the "owner" of the function):&lt;/p&gt;

&lt;p&gt;EXAMPLE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const person = {
  firstName  : "John",
  lastName   : "Doe",
  id         : 5566,
  myFunction : function() {
    return this;
  }
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;In other words: this.firstName means the firstName property of this (person) object.&lt;/p&gt;

&lt;p&gt;Explicit Function Binding&lt;br&gt;
The call() and apply() methods are predefined JavaScript methods.&lt;/p&gt;

&lt;p&gt;They can both be used to call an object method with another object as argument.&lt;/p&gt;

&lt;p&gt;You can read more about call() and apply() later in this tutorial.&lt;/p&gt;

&lt;p&gt;In the example below, when calling person1.fullName with person2 as argument, this will refer to person2, even if it is a method of person1:&lt;/p&gt;

&lt;p&gt;EXAMPLE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const person1 = {
  fullName: function() {
    return this.firstName + " " + this.lastName;
  }
}
const person2 = {
  firstName:"John",
  lastName: "Doe",
}
person1.fullName.call(person2);  // Will return "John Doe"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>react</category>
    </item>
    <item>
      <title>floating-socialMedia-icon</title>
      <dc:creator>Mahendra Bishnoi</dc:creator>
      <pubDate>Fri, 30 Jul 2021 12:22:30 +0000</pubDate>
      <link>https://dev.to/browncoder/floating-socialmedia-icon-1f0m</link>
      <guid>https://dev.to/browncoder/floating-socialmedia-icon-1f0m</guid>
      <description>&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/FullStackBoi/embed/RwVyZrJ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>webdev</category>
      <category>css</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Navbar</title>
      <dc:creator>Mahendra Bishnoi</dc:creator>
      <pubDate>Sat, 17 Jul 2021 06:28:59 +0000</pubDate>
      <link>https://dev.to/browncoder/navbar-4m55</link>
      <guid>https://dev.to/browncoder/navbar-4m55</guid>
      <description>&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/FullStackBoi/embed/ZEKegWG?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>navbar</category>
      <category>webdev</category>
      <category>responsive</category>
    </item>
  </channel>
</rss>
