<?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: Noman Gul</title>
    <description>The latest articles on DEV Community by Noman Gul (@nomangul).</description>
    <link>https://dev.to/nomangul</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%2F137034%2F43002845-0d4d-40cb-ba98-2759b1bf0a4f.jpg</url>
      <title>DEV Community: Noman Gul</title>
      <link>https://dev.to/nomangul</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nomangul"/>
    <language>en</language>
    <item>
      <title>Hello, World!</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Thu, 08 Oct 2020 07:20:52 +0000</pubDate>
      <link>https://dev.to/nomangul/hello-world-2ln2</link>
      <guid>https://dev.to/nomangul/hello-world-2ln2</guid>
      <description>&lt;p&gt;Hello DEV, this is my ninth post&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>help</category>
    </item>
    <item>
      <title>Hello, World!</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Mon, 05 Oct 2020 17:35:59 +0000</pubDate>
      <link>https://dev.to/nomangul/hello-world-28an</link>
      <guid>https://dev.to/nomangul/hello-world-28an</guid>
      <description>&lt;p&gt;Hello DEV, this is my third post&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Hello, World!</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Mon, 31 Aug 2020 06:27:38 +0000</pubDate>
      <link>https://dev.to/nomangul/hello-world-53d8</link>
      <guid>https://dev.to/nomangul/hello-world-53d8</guid>
      <description>&lt;p&gt;Hello DEV, this is my fifth post&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Teenage Software developer Journey (short version)</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Sun, 05 Jul 2020 11:34:53 +0000</pubDate>
      <link>https://dev.to/nomangul/teenager-software-developer-journey-short-version-2op3</link>
      <guid>https://dev.to/nomangul/teenager-software-developer-journey-short-version-2op3</guid>
      <description>&lt;p&gt;2017 =&amp;gt; now()&lt;/p&gt;

&lt;p&gt;16-year old =&amp;gt; 19 yo&lt;/p&gt;

&lt;p&gt;Matriculation =&amp;gt; Leaving college&lt;/p&gt;

&lt;p&gt;Going college in my father rickshaw/auto =&amp;gt; Working remotely&lt;/p&gt;

&lt;p&gt;printing 'Hello world' in android phone =&amp;gt; Using ThinkPad for day to day coding (still not comparable to MacBook but much better than smartphone :p)&lt;/p&gt;

&lt;p&gt;'a shy person' =&amp;gt; Attending Hackathons, local events, expanding my network and learning new technologies&lt;/p&gt;

&lt;p&gt;Turned down on for "not enough experience" =&amp;gt; Receiving job offers via LinkedIn and GitHub&lt;/p&gt;

&lt;p&gt;Learning from my couch =&amp;gt; Working from my own Home office&lt;/p&gt;

&lt;p&gt;Knew nothing =&amp;gt; Know something&lt;/p&gt;

&lt;p&gt;Just write stupid small apps.&lt;/p&gt;

&lt;p&gt;With lots of practice, you will eventually become a great developer. Although, you may never consider yourself that as you should always be seeking out learning more and more.&lt;/p&gt;

&lt;p&gt;In the end, the thing matter most is your 'curiosity'. It's your curiosity about 'How things work' which will lead you somewhere...&lt;/p&gt;

&lt;p&gt;Good Luck!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>motivation</category>
      <category>beginners</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>TIL (feat VSCode)</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Sat, 16 May 2020 21:27:28 +0000</pubDate>
      <link>https://dev.to/nomangul/til-feat-vscode-4407</link>
      <guid>https://dev.to/nomangul/til-feat-vscode-4407</guid>
      <description>&lt;p&gt;You can now move your custom containers around with all of the containing views in one movement in VSCode. The short video below shows dragging a Terminal into the Activity Bar.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TmMx4whT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://user-images.githubusercontent.com/39244918/82130516-84d3cf00-97e5-11ea-9500-31e8e15cccc5.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TmMx4whT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://user-images.githubusercontent.com/39244918/82130516-84d3cf00-97e5-11ea-9500-31e8e15cccc5.gif" alt="move-composite"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>todayilearned</category>
      <category>vscode</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>More than Git and GitHub workflow (Hindi/Urdu)</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Sun, 05 Jan 2020 11:19:05 +0000</pubDate>
      <link>https://dev.to/nomangul/more-than-git-and-github-workflow-hindi-urdu-3ke9</link>
      <guid>https://dev.to/nomangul/more-than-git-and-github-workflow-hindi-urdu-3ke9</guid>
      <description>&lt;p&gt;As-salaam-alaikum/Hello folks 👋,&lt;/p&gt;

&lt;p&gt;Here's me explaining more than just Git and Github work-flow (in Urdu/Hindi):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Branching 🏷️&lt;/li&gt;
&lt;li&gt;PRs process ⚙️&lt;/li&gt;
&lt;li&gt;Tasks management and stuff like that 🙂&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let us know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How are YOU doing work remotely or in a software house with big teams?&lt;/li&gt;
&lt;li&gt;which workflow is working best for you?&lt;/li&gt;
&lt;li&gt;or maybe you did some team-work when creating uni FYP... How did you manage tasks?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;doc link =&amp;gt; &lt;a href="https://www.notion.so/nomangul/Git-GitHub-workflow-28adfc05947a4473b02719ea98f951fe"&gt;https://www.notion.so/nomangul/Git-GitHub-workflow-28adfc05947a4473b02719ea98f951fe&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;P.S: I made a lot of mistakes in this video so, please ignore&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>urdu</category>
      <category>hindi</category>
    </item>
    <item>
      <title>10 minutes me kitni % Todo App bna sakte ho? (Urdu/Hindi)</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Sun, 29 Dec 2019 12:09:48 +0000</pubDate>
      <link>https://dev.to/nomangul/10-minutes-me-kitni-todo-app-bna-sakte-ho-urdu-hindi-105o</link>
      <guid>https://dev.to/nomangul/10-minutes-me-kitni-todo-app-bna-sakte-ho-urdu-hindi-105o</guid>
      <description>&lt;p&gt;"Todo App bnana koi halwa🥣 nhi"&lt;/p&gt;

&lt;p&gt;10 minutes me kitni % Todo App bna sakte ho?&lt;/p&gt;

&lt;p&gt;UNCUT/non-edited video&lt;/p&gt;

&lt;p&gt;Source code &amp;gt;&amp;gt;&amp;gt;&lt;a href="https://github.com/NomanGul/10Min-Todo-App"&gt;here&lt;/a&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/l4FB6D5zYQRluSno4/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/l4FB6D5zYQRluSno4/giphy.gif" alt="in 10 minutes"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>urdu</category>
      <category>hindi</category>
      <category>10minchallenge</category>
    </item>
    <item>
      <title>Why do you need to add a meta viewport tag inside &lt;head&gt; element? (with example)</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Sun, 24 Nov 2019 13:46:37 +0000</pubDate>
      <link>https://dev.to/nomangul/why-do-you-need-to-add-this-tag-inside-head-with-example-49do</link>
      <guid>https://dev.to/nomangul/why-do-you-need-to-add-this-tag-inside-head-with-example-49do</guid>
      <description>&lt;p&gt;Have you ever wondered why you need to add:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;inside &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tag and why it is useful?&lt;/p&gt;

&lt;p&gt;You're in the right place!&lt;/p&gt;
&lt;h3&gt;
  
  
  Example
&lt;/h3&gt;

&lt;p&gt;First of all, open this web page in a new tab: &lt;a href="http://www.pakistan.gov.pk/" rel="noopener noreferrer"&gt;http://www.pakistan.gov.pk/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open developer tools and enable device mode in your browser. This mode simulates the behavior of the web app on a mobile device. Notice that the page is zoomed out to fit the fixed-width content on the screen. This is not a good experience because the content will likely be too small for most users, forcing them to zoom and pan.&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F85hmk6eicy9x2wkvamha.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F85hmk6eicy9x2wkvamha.png" alt="bad viewport"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Set the visual viewport
&lt;/h3&gt;

&lt;p&gt;1- Edit head element:&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fab4m7uafxjsltv01ddlx.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fab4m7uafxjsltv01ddlx.png" alt="Edit head element"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2- Add viewport:&lt;/p&gt;

&lt;p&gt;Then add viewport meta tag and check the page in device mode. Notice the page is no longer zoomed out and the scale of the content matches the scale on a desktop device. If the content behaves unexpectedly in the device emulator, toggle in and out of device mode to reset it.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fyhys94h9bczhm28tsn6b.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fyhys94h9bczhm28tsn6b.png" alt="Add viewport"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Explanation
&lt;/h2&gt;

&lt;p&gt;A meta viewport tag gives the browser instructions on how to control the page's dimensions and scaling. The &lt;code&gt;width&lt;/code&gt; property controls the size of the viewport. It can be set to a specific number of pixels (for example, width=500) or to the special value &lt;code&gt;device-width&lt;/code&gt;, which is the width of the screen in CSS pixels at a scale of 100%. (There are corresponding &lt;code&gt;height&lt;/code&gt; and &lt;code&gt;device-height&lt;/code&gt; values, which can be useful for pages with elements that change size or position based on the viewport height.)&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;initial-scale&lt;/code&gt; property controls the zoom level when the page is first loaded. Setting the initial scale improves the experience, but the content still overflows past the edge of the screen.&lt;/p&gt;

&lt;p&gt;So then you need to use CSS &lt;code&gt;flex&lt;/code&gt; or &lt;code&gt;grid&lt;/code&gt; and other properties to make it responsive. But this is the part of another blog story 😜&lt;/p&gt;

&lt;p&gt;Thanks, Awesome DEVs!&lt;/p&gt;


&lt;div class="ltag__user ltag__user__id__137034"&gt;
    &lt;a href="/nomangul" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&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%2Fuploads%2Fuser%2Fprofile_image%2F137034%2F43002845-0d4d-40cb-ba98-2759b1bf0a4f.jpg" alt="nomangul image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/nomangul"&gt;Noman Gul&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/nomangul"&gt;Muhammad ﷺ follower
Web/App Dev• Freelancer•
❤ React / React-Native•
Be Strong and Code On!&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



</description>
      <category>todayilearned</category>
      <category>html</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>How I Use VSCode</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Mon, 21 Oct 2019 00:27:22 +0000</pubDate>
      <link>https://dev.to/nomangul/how-i-use-vscode-1df9</link>
      <guid>https://dev.to/nomangul/how-i-use-vscode-1df9</guid>
      <description>&lt;p&gt;I recently updated and shared my &lt;a href="https://howivscode.com/NomanGul"&gt;Visual Studio Code settings&lt;/a&gt; on &lt;a href="https://howivscode.com"&gt;How I VSCode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Check them out and share yours as well!&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>gimmesourcecode</category>
    </item>
    <item>
      <title>When you joined GitHub? WE KNOW! 😄 Octocat Day - Your Open-Source Birthday</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Sat, 05 Oct 2019 09:50:13 +0000</pubDate>
      <link>https://dev.to/nomangul/when-you-joined-github-we-know-octocat-day-your-open-source-birthday-38mg</link>
      <guid>https://dev.to/nomangul/when-you-joined-github-we-know-octocat-day-your-open-source-birthday-38mg</guid>
      <description>&lt;center&gt;&lt;h1&gt;Octocat Day 😺&lt;/h1&gt;&lt;/center&gt;

&lt;p&gt;&lt;b&gt;Believe me, It'll give you your open-source birthday date 😁&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/j3zhFNDnQXcQ4ajDZo/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img alt="octocat day image" src="https://i.giphy.com/media/j3zhFNDnQXcQ4ajDZo/giphy.gif"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Check out the project live at &lt;a href="https://www.octocatday.com"&gt;&lt;em&gt;OctocatDay.com&lt;/em&gt;&lt;/a&gt; and source code &lt;a href="https://github.com/NomanGul/octocat-day"&gt;&lt;em&gt;HERE&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Built With ⚙️
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://reactjs.org/"&gt;ReactJS&lt;/a&gt; - The SPA library used 🔧&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ant.design/"&gt;Ant Design&lt;/a&gt; - UI library 🌈&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://developer.github.com/v3/"&gt;GitHub API&lt;/a&gt; - 😺&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Please don't hesitate to open an &lt;a href="https://github.com/NomanGul/octocat-day/issues"&gt;issue&lt;/a&gt; or &lt;a href="https://github.com/NomanGul/octocat-day/pulls"&gt;pull request&lt;/a&gt;. You can also send me a message on &lt;a href="https://twitter.com/NomanGulKhan"&gt;Twitter&lt;/a&gt;. Contributions of any kind welcome!&lt;/p&gt;

&lt;p&gt;If you have any feedback, please feel welcome to leave a comment below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/gu9f2XekTc2uA/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/gu9f2XekTc2uA/giphy.gif" alt="thanks"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>github</category>
      <category>react</category>
      <category>hacktoberfest</category>
    </item>
    <item>
      <title>GitHub join date with ReactJS hooks</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Mon, 23 Sep 2019 15:00:57 +0000</pubDate>
      <link>https://dev.to/nomangul/github-join-date-with-reactjs-hooks-4goo</link>
      <guid>https://dev.to/nomangul/github-join-date-with-reactjs-hooks-4goo</guid>
      <description>&lt;p&gt;&lt;iframe src="https://codesandbox.io/embed/zt035"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codesandbox</category>
      <category>github</category>
      <category>react</category>
    </item>
    <item>
      <title>Sum of 3 or 5 Multiples - Problem =&gt; Solution</title>
      <dc:creator>Noman Gul</dc:creator>
      <pubDate>Sun, 15 Sep 2019 04:00:55 +0000</pubDate>
      <link>https://dev.to/nomangul/sum-of-3-or-5-multiples-problem-solution-292h</link>
      <guid>https://dev.to/nomangul/sum-of-3-or-5-multiples-problem-solution-292h</guid>
      <description>&lt;h1&gt;
  
  
  Problem
&lt;/h1&gt;

&lt;p&gt;Find the sum of all the multiples of 3 or 5 below 1000. e.g. If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/xT8qBsOjMOcdeGJIU8/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/xT8qBsOjMOcdeGJIU8/giphy.gif" alt="code problem"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  Solutions
&lt;/h1&gt;

&lt;p&gt;We implement two solutions but first I want to mention common function in both solutions...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;isMultiple&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Checks the given number is multiple or not with the help of modulus&lt;/span&gt;

&lt;span class="c1"&gt;// e.g. isMultiple(6, 3) returns true because 6 % 3 remainder is 0.&lt;/span&gt;
&lt;span class="c1"&gt;// This mean 6 is multiple of 3.&lt;/span&gt;

&lt;span class="c1"&gt;// At the other hand isMultiple(26, 5) returns false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h1&gt;
  
  
  With =&amp;gt; Array Methods
&lt;/h1&gt;

&lt;p&gt;1.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// initial array range/length&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;numRange&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Empty Array with 1000 undefined items&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;array1000&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;numRange&lt;/span&gt;&lt;span class="p"&gt;)];&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;2.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// array where we push 3 or 5 multiples&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;threeOrFiveMultiples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[];&lt;/span&gt;

&lt;span class="c1"&gt;// common util function for checking multiples&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;isMultiple&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// mapping over an undefined items array and pushing&lt;/span&gt;
&lt;span class="c1"&gt;// 3 or 5 multiples indexes to threeOrFiveMultiples array&lt;/span&gt;

&lt;span class="nx"&gt;array1000&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;index&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;isMultiple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;index&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;isMultiple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;index&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="nx"&gt;threeOrFiveMultiples&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;index&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;3.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// reducing the array to a single value&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;threeOrFiveMultiples&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;reduce&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;acc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;curr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;acc&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;curr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// logs the sum of all the multiples of&lt;/span&gt;
&lt;span class="c1"&gt;// 3 or 5 below 1000 =&amp;gt; 233168&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;4.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// complete solution with array methods&lt;/span&gt;

&lt;span class="c1"&gt;// initial array range/length&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;numRange&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Empty Array with 1000 undefined items&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;array1000&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;numRange&lt;/span&gt;&lt;span class="p"&gt;)];&lt;/span&gt;

&lt;span class="c1"&gt;// array where we push 3 or 5 multiples&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;threeOrFiveMultiples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[];&lt;/span&gt;

&lt;span class="c1"&gt;// common util function for checking multiples&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;isMultiple&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// mapping over an undefined items array and pushing&lt;/span&gt;
&lt;span class="c1"&gt;// 3 or 5 multiples indexes to "threeOrFiveMultiples" array&lt;/span&gt;
&lt;span class="nx"&gt;array1000&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;index&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;isMultiple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;index&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;isMultiple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;index&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="nx"&gt;threeOrFiveMultiples&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;index&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="c1"&gt;// reducing the array to a single value&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;threeOrFiveMultiples&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;reduce&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;acc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;curr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;acc&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;curr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// logs the sum of all the multiples of&lt;/span&gt;
&lt;span class="c1"&gt;// 3 or 5 below 1000 =&amp;gt; 233168&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h1&gt;
  
  
  With =&amp;gt; For Loop
&lt;/h1&gt;

&lt;p&gt;1.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// loop max range&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;numRange&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// common util function for checking multiples&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;isMultiple&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;2.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// looping over an numbers below 1000 and adding 3 or 5&lt;/span&gt;
&lt;span class="c1"&gt;// multiples to sum&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;numRange&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;isMultiple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;isMultiple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="nx"&gt;sum&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// logs the sum of all the multiples of&lt;/span&gt;
&lt;span class="c1"&gt;// 3 or 5 below 1000 =&amp;gt; 233168&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;3.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// complete solution with For Loop&lt;/span&gt;

&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;sum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// loop max range&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;numRange&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// common util function for checking multiples&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;isMultiple&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// looping over an numbers below 1000 and adding 3 or 5&lt;/span&gt;
&lt;span class="c1"&gt;// multiples to sum&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;numRange&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;isMultiple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;isMultiple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="nx"&gt;sum&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// logs the sum of all the multiples of&lt;/span&gt;
&lt;span class="c1"&gt;// 3 or 5 below 1000 =&amp;gt; 233168&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;&lt;a href="https://i.giphy.com/media/JozPUJqrzDjZRXCTI5/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/JozPUJqrzDjZRXCTI5/giphy.gif" alt="problem solved"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;Let me know which solution you like more and why? (BTW my favorite one is with "For Loop" because it's so easy and less code)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;And, for more cool stuff, follow me on Twitter &lt;a href="https://twitter.com/NomanGulKhan"&gt;@NomanGulKhan&lt;/a&gt; and GitHub &lt;a href="https://github.com/NomanGul"&gt;@NomanGul&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;




&lt;center&gt;&lt;b&gt;More from Noman 🦄&lt;/b&gt;&lt;/center&gt;


&lt;div class="ltag__link"&gt;
  &lt;a href="/nomangul" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PAqPCtri--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://res.cloudinary.com/practicaldev/image/fetch/s--icXNu4Ak--/c_fill%2Cf_auto%2Cfl_progressive%2Ch_150%2Cq_auto%2Cw_150/https://dev-to-uploads.s3.amazonaws.com/uploads/user/profile_image/137034/43002845-0d4d-40cb-ba98-2759b1bf0a4f.jpg" alt="nomangul image"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="/nomangul/full-stack-dev-explained-in-2-minutes-1amn" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;🧔 Full-Stack Dev explained in 2 minutes&lt;/h2&gt;
      &lt;h3&gt;Noman Gul ・ Sep 13 '19 ・ 1 min read&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#explainlikeimfive&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#javascript&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#react&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;



&lt;div class="ltag__link"&gt;
  &lt;a href="/nomangul" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PAqPCtri--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://res.cloudinary.com/practicaldev/image/fetch/s--icXNu4Ak--/c_fill%2Cf_auto%2Cfl_progressive%2Ch_150%2Cq_auto%2Cw_150/https://dev-to-uploads.s3.amazonaws.com/uploads/user/profile_image/137034/43002845-0d4d-40cb-ba98-2759b1bf0a4f.jpg" alt="nomangul image"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="/nomangul/margin-right-50-4oko" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;margin-right: -50%;&lt;/h2&gt;
      &lt;h3&gt;Noman Gul ・ Sep 11 '19 ・ 1 min read&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#jokes&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#css&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#watercooler&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
