<?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: Abhii</title>
    <description>The latest articles on DEV Community by Abhii (@abhilearnstocode).</description>
    <link>https://dev.to/abhilearnstocode</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%2F504595%2F747cb788-4eb5-4dce-a39d-08c84944aa70.png</url>
      <title>DEV Community: Abhii</title>
      <link>https://dev.to/abhilearnstocode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhilearnstocode"/>
    <language>en</language>
    <item>
      <title>Understanding DNS: The phonebook of Internet</title>
      <dc:creator>Abhii</dc:creator>
      <pubDate>Sat, 18 Feb 2023 15:28:05 +0000</pubDate>
      <link>https://dev.to/abhilearnstocode/understanding-dns-the-phonebook-of-internet-19n4</link>
      <guid>https://dev.to/abhilearnstocode/understanding-dns-the-phonebook-of-internet-19n4</guid>
      <description>&lt;p&gt;👋 Hey there!&lt;/p&gt;

&lt;p&gt;Have you ever wondered how your computer finds a website on the internet? 🤔 That's where DNS comes in - it's like the phonebook of the internet!&lt;/p&gt;

&lt;p&gt;DNS stands for Domain Name System, and it's a crucial component of the internet that allows your device to find and communicate with other devices on the internet. Here's how it works:&lt;/p&gt;

&lt;p&gt;🌐 Websites and devices on the internet are each assigned a unique IP address, a string of numbers that identifies them on the network.&lt;br&gt;
📚 But, IP addresses can be hard to remember, especially since they look something like this: 216.58.194.174.&lt;br&gt;
🔍 That's where DNS comes in - it allows us to use human-friendly domain names, like &lt;a href="http://www.google.com" rel="noopener noreferrer"&gt;www.google.com&lt;/a&gt;, instead of remembering a bunch of numbers.&lt;br&gt;
🔗 When you type a domain name into your browser, your device sends a request to a DNS server to find the IP address associated with that domain name.&lt;br&gt;
📶 The DNS server responds with the IP address, and your device can then connect to the website or device.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff6l2yrq2fj1ofif5ov11.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff6l2yrq2fj1ofif5ov11.png" alt="Working of DNS" width="582" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, in essence, DNS acts as a translator, converting human-friendly domain names into machine-friendly IP addresses.&lt;/p&gt;

&lt;p&gt;But, how does your device know which DNS server to send the request to? 🤔 Well, your internet service provider (ISP) typically provides you with a default DNS server to use. However, you can also choose to use a different DNS server, such as Google's public DNS or Cloudflare's DNS.&lt;/p&gt;

&lt;p&gt;DNS is a critical part of the internet infrastructure, and it's important to understand how it works. Without DNS, you'd have to remember the IP addresses of every website you visit, which would be a huge headache!&lt;/p&gt;

&lt;p&gt;In conclusion, DNS is like the phonebook of the internet, translating human-friendly domain names into machine-friendly IP addresses. It's a crucial part of how the internet works, and understanding it can help you troubleshoot internet connection issues and make informed choices about your internet service. Thanks for reading, and happy surfing! 🌊🏄‍♀️🏄‍♂️&lt;/p&gt;

</description>
      <category>watercooler</category>
    </item>
    <item>
      <title>I made a basic search-bar using JS</title>
      <dc:creator>Abhii</dc:creator>
      <pubDate>Sun, 18 Jul 2021 06:38:16 +0000</pubDate>
      <link>https://dev.to/abhilearnstocode/i-made-a-basic-search-bar-using-js-55dp</link>
      <guid>https://dev.to/abhilearnstocode/i-made-a-basic-search-bar-using-js-55dp</guid>
      <description>&lt;p&gt;I created a basic search bar using JS and here is how it looks.&lt;br&gt;
So, whenever a &lt;code&gt;keyup&lt;/code&gt; occurs inside the search box, our function searches for the item in our list.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Things you should know&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Basic JS&lt;/li&gt;
&lt;li&gt;onKeyUp &lt;/li&gt;
&lt;li&gt;forEach method&lt;/li&gt;
&lt;li&gt;DOM Manipulation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can see the &lt;a href="https://amdhanwate.github.io/search-bar-using-js/" rel="noopener noreferrer"&gt;live demo here&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  The Code
&lt;/h3&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/amdhanwate/embed/XWRRvgm?height=600&amp;amp;default-tab=js,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Github Repo
&lt;/h3&gt;

&lt;p&gt;Feel free to fork or clone the repo.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&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%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/amdhanwate" rel="noopener noreferrer"&gt;
        amdhanwate
      &lt;/a&gt; / &lt;a href="https://github.com/amdhanwate/search-bar-using-js" rel="noopener noreferrer"&gt;
        search-bar-using-js
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;h4&gt;
  
  
  Thank you!
&lt;/h4&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>showdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What, according to you, is the ideal flow of a Full-Stack Project?</title>
      <dc:creator>Abhii</dc:creator>
      <pubDate>Sun, 11 Jul 2021 16:50:23 +0000</pubDate>
      <link>https://dev.to/abhilearnstocode/what-according-to-you-is-the-ideal-flow-of-a-full-stack-project-2e16</link>
      <guid>https://dev.to/abhilearnstocode/what-according-to-you-is-the-ideal-flow-of-a-full-stack-project-2e16</guid>
      <description>&lt;p&gt;Ummmm.... I don't know where to start 😢&lt;/p&gt;

&lt;p&gt;I have an idea in mind to develop a full stack application and as usual I started working on it without any prior plan. So here I am, stucked, thinking that I should have planned it before, decided if I would be working on Frontend first or the backend or whether I should have designed the layout, decided the theme/colors for my project.&lt;/p&gt;

&lt;p&gt;TBH I haven't thought this before writing this post and now I'm frustrated. And hence..., I'm here asking my fav community &lt;strong&gt;How do they plan their fullstack projects&lt;/strong&gt; beforehand to ensure the smooth flow of the project development.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tech Stack to be used
&lt;/h3&gt;

&lt;h4&gt;
  
  
  - Frontend:
&lt;/h4&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. HTML/CSS/JS
2. Bootstrap
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h4&gt;
  
  
  - Backend:
&lt;/h4&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Python (To scrape data)
2. Django and Django Rest Framework (To create API)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;br&gt;&lt;br&gt;
And once again thanks to this ever helping community of developers who are always ready to help and encourage everyone. ❤️

</description>
      <category>fullstack</category>
      <category>webdev</category>
      <category>project</category>
      <category>discuss</category>
    </item>
    <item>
      <title>.parent .child vs .parent &gt; .child css selector</title>
      <dc:creator>Abhii</dc:creator>
      <pubDate>Thu, 08 Jul 2021 15:15:46 +0000</pubDate>
      <link>https://dev.to/abhilearnstocode/parent-child-vs-parent-child-css-selector-4ff3</link>
      <guid>https://dev.to/abhilearnstocode/parent-child-vs-parent-child-css-selector-4ff3</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;h2&gt;
  
  
  The .parent .child selector
&lt;/h2&gt;

&lt;h2&gt;
  
  
  The .parent &amp;gt; .child selector
&lt;/h2&gt;

&lt;h2&gt;
  
  
  After words
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;styles.css&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;box-sizing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;border-box&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1.5rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#fff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.parent&lt;/span&gt; &lt;span class="nc"&gt;.child&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;darkblue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.parent&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;.child&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;brown&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;&lt;code&gt;index.html&lt;/code&gt;&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;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"parent"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"child"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is brown&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"one"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"child"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This is yellow&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"parent"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"one"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"child"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Why is thid yellow?&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/26957184/css-selector-difference-element-element-vs-elementelement/26957235"&gt;Inspiration&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Reveal navbar on scroll</title>
      <dc:creator>Abhii</dc:creator>
      <pubDate>Tue, 06 Jul 2021 18:22:08 +0000</pubDate>
      <link>https://dev.to/abhilearnstocode/reveal-navbar-on-scroll-28e0</link>
      <guid>https://dev.to/abhilearnstocode/reveal-navbar-on-scroll-28e0</guid>
      <description>&lt;h2&gt;
  
  
  Intro and Motivation
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=RYUuGgC_IY0" rel="noopener noreferrer"&gt;DesignCourse's&lt;/a&gt; Gary Simon just released a tutorial on the topic that sounds like the title of this blog (I'm not sure if my writing is eligible to be called as a blog 😁)&lt;/p&gt;

&lt;p&gt;After I watched that, I thought of recreating it and here I'm showing it to you all. &lt;/p&gt;

&lt;h2&gt;
  
  
  Let's Start
&lt;/h2&gt;

&lt;p&gt;I'm sure you can write some markup and a lots of the &lt;strong&gt;lorem&lt;/strong&gt; text. So we'll jump right to my javascript logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pre-requisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;window.pageYOffset&lt;/strong&gt; : It basically returns the position of scrollbar. Check out &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/pageYOffset" rel="noopener noreferrer"&gt;More on pageYOffset&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Basic JavaScript&lt;/li&gt;
&lt;li&gt;Basic Logical Resoning&lt;/li&gt;
&lt;li&gt;Some time&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Logic
&lt;/h2&gt;

&lt;p&gt;When the user scroll's down the navbar must hide itself and when the user starts to scroll up it must reveal itself back.&lt;/p&gt;

&lt;p&gt;So let us have some variables,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;lastScroll - Stores the just previous scroll position&lt;/li&gt;
&lt;li&gt;currentScroll - Stores the currenrt scroll position&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If differnce between currentScroll and lastScroll is positive, it means that user has -- SCROLLED DOWN -- and therefore we will hide the navbar.&lt;/p&gt;

&lt;p&gt;Similarly, If differnce between currentScroll and lastScroll is negative, it means that user has -- SCROLLED UP -- and therefore we will reveal the navbar&lt;/p&gt;

&lt;p&gt;We will also need some css classes to help us perform the magic,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;.scroll-up - what happens after user scrolls up&lt;/li&gt;
&lt;li&gt;.scroll-down - what happens after user scrolls down&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;.scroll-up&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;header&lt;/span&gt;&lt;span class="nc"&gt;.scroll-up&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;translateY&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;0&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;&lt;code&gt;.scroll-down&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;header&lt;/span&gt;&lt;span class="nc"&gt;.scroll-down&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;translateY&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;-100%&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;h2&gt;
  
  
  The Code
&lt;/h2&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/amdhanwate/embed/GRmZgay?height=600&amp;amp;default-tab=js,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;
&lt;h3&gt;
  
  
  You can also find the code on GitHub
&lt;/h3&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&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%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/amdhanwate" rel="noopener noreferrer"&gt;
        amdhanwate
      &lt;/a&gt; / &lt;a href="https://github.com/amdhanwate/reveal-unreveal-on-scroll" rel="noopener noreferrer"&gt;
        reveal-unreveal-on-scroll
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Reveal and unreveal the navbar depending upon user's scroll behavior
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;h2&gt;
  
  
  After words
&lt;/h2&gt;

&lt;p&gt;Do tell me your thoughts on this and I welcome all type of criticism (I don't know the spelling) which would help me become a better developer after all.&lt;/p&gt;

&lt;p&gt;Also, a &lt;strong&gt;BIG&lt;/strong&gt; thanks to our developer community for always helping and encouraging everyone around.&lt;/p&gt;

&lt;p&gt;I hope you wait for my next article..&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>codenewbie</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Can script tag have both src and content?</title>
      <dc:creator>Abhii</dc:creator>
      <pubDate>Sun, 11 Apr 2021 13:45:11 +0000</pubDate>
      <link>https://dev.to/abhilearnstocode/can-script-tag-have-both-src-and-content-45in</link>
      <guid>https://dev.to/abhilearnstocode/can-script-tag-have-both-src-and-content-45in</guid>
      <description>&lt;p&gt;You wanna be a software engineer at Google?&lt;br&gt;
Sorry, this is not the part of our discussion today 😁&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Can &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag have both &lt;code&gt;src&lt;/code&gt; and content both?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Well the answer is Yes!! But the rendering is browser specific. &lt;/p&gt;

&lt;p&gt;Many of the modern browsers don't run content at all when the script tag has &lt;code&gt;src&lt;/code&gt;. If the injection is unsuccessful the browser will log the error as &lt;code&gt;net::ERR_ABORTED 404 (Not Found)&lt;/code&gt; and if it is successful it will execute the &lt;code&gt;src&lt;/code&gt; script. &lt;/p&gt;

&lt;p&gt;According to &lt;a href="https://html.spec.whatwg.org/#the-script-element"&gt;html.spec.whatwg.org&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;For the Content model of &lt;code&gt;script&lt;/code&gt; tag&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If there is no src attribute, depends on the value of the type attribute, but must match script content restrictions.&lt;/li&gt;
&lt;li&gt;If there is a src attribute, the element must be either empty or contain only script documentation that also matches &lt;a href="https://html.spec.whatwg.org/#restrictions-for-contents-of-script-elements"&gt;script content restrictions&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;Many programmers tend to put the content inside &lt;code&gt;script&lt;/code&gt; and then use DOM methods to get the content as string and then &lt;em&gt;eval&lt;/em&gt; it. But this is not a good idea and hence must not be used.&lt;/p&gt;
&lt;h4&gt;
  
  
  So, What must be the content of the script which has src attribute?
&lt;/h4&gt;

&lt;p&gt;&lt;a href="http://dev.w3.org/html5/spec/Overview.html#inline-documentation-for-external-scripts"&gt;HTML5 Draft specification&lt;/a&gt; suggests that &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; elements with &lt;code&gt;src&lt;/code&gt; attribute must only include commented out code which gives the documentation of the script.&lt;/p&gt;

&lt;p&gt;Again, there's a catch here as well. The following script will produce &lt;code&gt;syntaxError&lt;/code&gt;:&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;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"main.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;example&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Consider this string: &amp;lt;!-- &amp;lt;script&amp;gt;&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&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;example&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;I know it's weird but it is JavaScript after all.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The reason for the error is that browser does not find the closing tag for the &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag as &lt;code&gt;&amp;lt;/script&amp;gt;&lt;/code&gt; is considered to be the closing tag for &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; on line:2&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What is going on here is that for legacy reasons, "&amp;lt;!--" and &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; strings in script elements in HTML need to be balanced in order for the parser to consider closing the block.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To avoid such issues we can escape the &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; string as &lt;code&gt;&amp;lt;\script&amp;gt;&lt;/code&gt; and thus our problems would be solved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wrapping up&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Yes&lt;/strong&gt;, &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag can have both src and content where content shall only include the commented out code that provides the documentation about the src used.&lt;/li&gt;
&lt;li&gt;While using &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; as string always use escape sequence to avoid unnecessary problems. &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; string must be escaped as &lt;code&gt;&amp;lt;\script&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;/script&amp;gt;&lt;/code&gt; string as &lt;code&gt;&amp;lt;\/script&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's all for today! Hope you enjoyed the article and gained some&lt;br&gt;
insights on the topic. &lt;br&gt;
&lt;em&gt;Or, Did I made you more confused?&lt;/em&gt; 😄&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thank You!!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>html</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What are some projects I can do to make myself hireable as a full stack web developer?</title>
      <dc:creator>Abhii</dc:creator>
      <pubDate>Thu, 08 Apr 2021 20:29:59 +0000</pubDate>
      <link>https://dev.to/abhilearnstocode/what-are-some-projects-i-can-do-to-make-myself-hireable-as-a-full-stack-web-developer-5a4j</link>
      <guid>https://dev.to/abhilearnstocode/what-are-some-projects-i-can-do-to-make-myself-hireable-as-a-full-stack-web-developer-5a4j</guid>
      <description></description>
    </item>
    <item>
      <title>Functional Components in React</title>
      <dc:creator>Abhii</dc:creator>
      <pubDate>Wed, 07 Apr 2021 07:50:29 +0000</pubDate>
      <link>https://dev.to/abhilearnstocode/functional-components-in-react-54id</link>
      <guid>https://dev.to/abhilearnstocode/functional-components-in-react-54id</guid>
      <description>&lt;p&gt;I started learning React yesterday and hence I thought I'll write articles about what I learned each day. &lt;/p&gt;

&lt;h3&gt;
  
  
  What are components in React?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Components are independent and reusable block of code and return html using render() function.&lt;/p&gt;

&lt;p&gt;Suppose we have the following UI: &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eFvucPy5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rm49x608ph5pxvbdl5iy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eFvucPy5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rm49x608ph5pxvbdl5iy.png" alt="Explaining react components via UI layout" width="400" height="400"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;So we will have components for each like Navbar component, sidebar component, component for article and footer. &lt;/p&gt;

&lt;p&gt;React allows us to write components in two ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Functional components&lt;/li&gt;
&lt;li&gt;Class Components&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Writing your first React component
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="err"&gt;!&lt;/span&gt;&lt;span class="na"&gt;DOCTYPE&lt;/span&gt; &lt;span class="na"&gt;html&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;head&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;meta&lt;/span&gt; &lt;span class="na"&gt;charset&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;title&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Functional Components in React&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;title&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;head&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;body&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"root"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;

// Babel (To render JSX), React and ReactDOM
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://unpkg.com/@babel/standalone/babel.js"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://unpkg.com/react/umd/react.development.js"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://unpkg.com/react-dom/umd/react-dom.development.js"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text/babel"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  function SayHello()&lt;span class="si"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Hello, World!&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;);&lt;/span&gt;
  &lt;span class="si"&gt;}&lt;/span&gt;;

  ReactDOM.render(
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;SayHello&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;,
      document.getElementById('root')
  );
&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;body&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Understanding above code:
&lt;/h4&gt;

&lt;p&gt;We have a simple html document with div with id as root and some script files: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Babel (used to render jsx)&lt;/li&gt;
&lt;li&gt;React and ReactDOM&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In our inline script, we wrote our first functional component.&lt;br&gt;
Function SayHello() returns jsx and thus we used imported babel.&lt;/p&gt;

&lt;p&gt;Now, we render this JSX into out html with the help of render() function from ReactDOM. &lt;br&gt;
render() accepts two arguments: &lt;code&gt;render(WHAT TO RENDER, WHERE TO RENDER)&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Hence our functional component SayHello() renders &lt;code&gt;Hello, World!&lt;/code&gt; into the div with id as &lt;code&gt;root&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  Points to remember:
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Start component name with CAPITAL letter. (Capital CamelCase is preferred)&lt;/li&gt;
&lt;li&gt;Your component cannot return multiple elements. Therefore make sure to bind all of them into a single parent element. e.g.
&lt;/li&gt;
&lt;/ol&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;div&amp;gt;&lt;/span&gt;
 &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
 &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Okay, that's all today. Hope you liked the article and would also like to hear from you to improve my ways of writing these articles. &lt;br&gt;
Don't forget: I'm Noob writer after all 😁&lt;/p&gt;

&lt;p&gt;Some Links to learn React: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.reactjs.org/"&gt;React Official Website&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=DLX62G4lc44"&gt;FreeCodeCamp&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://egghead.io/courses/the-beginner-s-guide-to-react"&gt;EggHead.io React Beginner's Free Course&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>todayilearned</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>#0 Hello World of DATA STRUCTURES</title>
      <dc:creator>Abhii</dc:creator>
      <pubDate>Mon, 14 Dec 2020 10:11:23 +0000</pubDate>
      <link>https://dev.to/abhilearnstocode/0-hello-world-of-data-structures-al2</link>
      <guid>https://dev.to/abhilearnstocode/0-hello-world-of-data-structures-al2</guid>
      <description>&lt;p&gt;According to &lt;a href="https://en.wikipedia.org/wiki/Data_structure"&gt;wikipedia&lt;/a&gt;,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In simple terms, it is a way of writing data which helps to manage, organise or modify data.&lt;/p&gt;

&lt;h1&gt;
  
  
  Arrays
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Arrays are the most basic data structures. &lt;/li&gt;
&lt;li&gt;Elements in array are stored in contiguous memory location.&lt;/li&gt;
&lt;li&gt;Elements can be accessed with the help of their index.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We will be implementing our code in C++. Since logic is same for most of the languages you will only need to change the syntax to implement it in any other language.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantages of Arrays&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Easy and random access to array elements.&lt;/li&gt;
&lt;li&gt;Sorting of data can be done easily and in less code.&lt;/li&gt;
&lt;li&gt;Traversal through array is easy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Disadvantages of Arrays&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Array size once specified cannot be changed.&lt;/li&gt;
&lt;li&gt;Insertion and deletion is hectic as we have to move the elements to manage the continuous memory indexing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Array declaration in C++&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Array declaration by specifying size
int arr1[5];

// Array declaration by specifying user defined size
int s = 5;
char arr2[s];

// Array declaration by initializing elements
float arr3[] = { 11.2, 34.5, 89.5, 32.09}

// above is same as "float arr3[4] = { 11.2, 34.5, 89.5, 32.09}"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Accept elements from user in Array&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int size, arr[size]; 

cout&amp;lt;&amp;lt;"Enter size of array: ";
cin&amp;gt;&amp;gt;size;    //prompt user to enter size of array

for (int i = 0; i &amp;lt; size; i++){
    cin&amp;gt;&amp;gt;arr[i];
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Insert at beginning of Array&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;void insertAtBeginning(int arr[], int size, int beg){
    if (isFull()){
        cout&amp;lt;&amp;lt;"Array is Full!";
    }

    else if (isEmpty()){
        arr[0] =  beg;
    }
    else{
        int arrSize = sizeof(arr[0])/sizeof(arr);
        for (int i = 0; i &amp;lt; arrSize; i++){
            arr[arrSize] = arr[arrSize - 1];
        }

        arr[0] = beg;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Henceforth, only the algorithm will be discussed and it is expected that reader implements the algorithm by writing his own code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Insert at position in Array&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;First get the element to be inserted.&lt;/li&gt;
&lt;li&gt;Then get the position at which this element is to be inserted.&lt;/li&gt;
&lt;li&gt;Then shift the array elements from this position to one position forward, and do this for all the other elements next to pos.&lt;/li&gt;
&lt;li&gt;Insert the element at the given position like &lt;code&gt;int[pos] = element&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Hope your element is inserted at proper position.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Insert at End&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Oh c'mon... I know you can do it without the algorithm.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Delete the element from the Array&lt;/strong&gt;&lt;br&gt;
You can delete element either by getting it's position or by getting it's value&lt;br&gt;
&lt;u&gt;Delete element by Position&lt;/u&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;Get the position of element to be deleted. &lt;/li&gt;
&lt;li&gt;Loop through the array from the position to end and moving each element one index down. &lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Various testcases are ignored and are expected to be done by the reader.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Delete element by Value&lt;/u&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;Get the value to be deleted.&lt;/li&gt;
&lt;li&gt;Loop through the array and search for the value. Remember to keep track of count/position.&lt;/li&gt;
&lt;li&gt;Once element is found, break the loop.&lt;/li&gt;
&lt;li&gt;Loop through the array from the position to end and moving each element one index down.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Update the value in Array&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Dude...!! Seriously?!!&lt;br&gt;
Just &lt;code&gt;arr[pos] = newValue&lt;/code&gt; AS SIMPLE AS THAT.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here are some problems to practice&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Write a C++ program to find the second lowest and highest numbers in a given array.&lt;/li&gt;
&lt;li&gt;Write a C++ program to arrange the numbers of a given array in a way that the sum of some numbers equal the largest number in the array.&lt;/li&gt;
&lt;li&gt;Write a C++ program to find the number of pairs of integers in a given array of integers whose sum is equal to a specified number.&lt;/li&gt;
&lt;li&gt; Write a C++ program to find and print all common elements in three sorted arrays of integers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;u&gt; Find more at &lt;strong&gt;&lt;a href="https://www.w3resource.com/cpp-exercises/array/index.php"&gt;W3Resource&lt;/a&gt;&lt;/strong&gt; &lt;/u&gt;&lt;/p&gt;

&lt;p&gt;Enough theory now.. Just go around and mess with the stuff.&lt;br&gt;
&lt;strong&gt;KEEP PRACTISING. STAY SAFE AND KEEP CODING!!&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  References
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Data_structure"&gt;https://en.wikipedia.org/wiki/Data_structure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Array_data_structure"&gt;https://en.wikipedia.org/wiki/Array_data_structure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.geeksforgeeks.org/arrays-in-c-cpp/"&gt;https://www.geeksforgeeks.org/arrays-in-c-cpp/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.w3resource.com/cpp-exercises/array/index.php"&gt;https://www.w3resource.com/cpp-exercises/array/index.php&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>cpp</category>
      <category>datastructures</category>
      <category>codenewbie</category>
      <category>arrays</category>
    </item>
  </channel>
</rss>
