<?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: Amr Ataa</title>
    <description>The latest articles on DEV Community by Amr Ataa (@amrataabdallh).</description>
    <link>https://dev.to/amrataabdallh</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%2F997871%2Fab130f5f-14e4-4661-be3a-0accfba5f228.jpeg</url>
      <title>DEV Community: Amr Ataa</title>
      <link>https://dev.to/amrataabdallh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amrataabdallh"/>
    <language>en</language>
    <item>
      <title>Autofocus Attribute</title>
      <dc:creator>Amr Ataa</dc:creator>
      <pubDate>Fri, 13 Jan 2023 07:48:19 +0000</pubDate>
      <link>https://dev.to/amrataabdallh/autofocus-attribute-ppg</link>
      <guid>https://dev.to/amrataabdallh/autofocus-attribute-ppg</guid>
      <description>&lt;p&gt;Again, HTML5 removes the need for JavaScript solutions. If a particular input should be "selected," or focused, by default, we can now use the &lt;strong&gt;autofocus&lt;/strong&gt; attribute.&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;input type="text" name="someInput" placeholder="Douglas Quaid" required autofocus&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are some important points that you need to keep in mind while using the &lt;strong&gt;autofocus&lt;/strong&gt; attribute. Use of this attribute can cause behavior such as auto-scrolling of the page on load or the appearance of dynamic keyboards on smartphones.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Make Your Content Editable</title>
      <dc:creator>Amr Ataa</dc:creator>
      <pubDate>Fri, 13 Jan 2023 07:45:30 +0000</pubDate>
      <link>https://dev.to/amrataabdallh/make-your-content-editable-2bn5</link>
      <guid>https://dev.to/amrataabdallh/make-your-content-editable-2bn5</guid>
      <description>&lt;p&gt;Newer browsers have a nifty attribute that can be applied to elements, called &lt;strong&gt;contenteditable&lt;/strong&gt;. As the name implies, this allows the user to edit any of the text contained within the element, including its children. There are a variety of uses for something like this, including an app as simple as a to-do list, which also takes advantage of local storage.&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;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8"&amp;gt;
    &amp;lt;title&amp;gt;Making Content Editable&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;h2&amp;gt;Editable To-Do List&amp;lt;/h2&amp;gt;
    &amp;lt;ol contenteditable="true"&amp;gt;
        &amp;lt;li&amp;gt;Break mechanical cab driver.&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;Drive to abandoned factory.&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;Watch video of self.&amp;lt;/li&amp;gt;
    &amp;lt;/ol&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>writing</category>
      <category>seo</category>
      <category>community</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Use “+” to convert string to number</title>
      <dc:creator>Amr Ataa</dc:creator>
      <pubDate>Wed, 11 Jan 2023 06:21:26 +0000</pubDate>
      <link>https://dev.to/amrataabdallh/use-to-convert-string-to-number-3mcf</link>
      <guid>https://dev.to/amrataabdallh/use-to-convert-string-to-number-3mcf</guid>
      <description>&lt;p&gt;You might be using Number() and parseInt() to convert string to number.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// ❌
let str = '123'
let num = Number(str) // 123
let num2 = parseInt(str) // 123
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// ✅
let str = '123'
let num = +str // 123
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Empower your front-end developers</title>
      <dc:creator>Amr Ataa</dc:creator>
      <pubDate>Fri, 06 Jan 2023 13:07:51 +0000</pubDate>
      <link>https://dev.to/amrataabdallh/empower-your-front-end-developers-4o20</link>
      <guid>https://dev.to/amrataabdallh/empower-your-front-end-developers-4o20</guid>
      <description>&lt;p&gt;GraphQL allows front-end developers to query and mutate the data without having to make requests for custom endpoints to back-end developers. Minimize the need for having backend developers perform low-value work.&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>programming</category>
      <category>graphql</category>
    </item>
    <item>
      <title>Use “? … : …” instead of “if… else…”</title>
      <dc:creator>Amr Ataa</dc:creator>
      <pubDate>Tue, 03 Jan 2023 07:42:50 +0000</pubDate>
      <link>https://dev.to/amrataabdallh/use-instead-of-if-else-29ac</link>
      <guid>https://dev.to/amrataabdallh/use-instead-of-if-else-29ac</guid>
      <description>&lt;p&gt;Many times simple conditional judgments do not need to use “if”.&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%2Fc6uzdxij3xbp0686p9hj.jpg" 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%2Fc6uzdxij3xbp0686p9hj.jpg" alt="Image description" width="800" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>tooling</category>
      <category>saas</category>
      <category>marketing</category>
    </item>
    <item>
      <title>How JavaScript Works?</title>
      <dc:creator>Amr Ataa</dc:creator>
      <pubDate>Mon, 02 Jan 2023 06:35:51 +0000</pubDate>
      <link>https://dev.to/amrataabdallh/how-javascript-works-174k</link>
      <guid>https://dev.to/amrataabdallh/how-javascript-works-174k</guid>
      <description>&lt;p&gt;JavaScript is a programming language that is commonly used to add interactive features to web pages. It runs on the &lt;strong&gt;client side&lt;/strong&gt;, which means that it is executed by the web browser on the user’s computer rather than on a server.&lt;/p&gt;

&lt;p&gt;Here’s a high-level overview of how JavaScript works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A web page is loaded in a web browser and the HTML (HyperText Markup Language) and CSS (Cascading Style Sheets) code is rendered to create the layout and style of the page.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The web browser then looks for any JavaScript code that is included in the page. This code is usually included in one or more script elements in the HTML file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The JavaScript code is executed by the web browser. It can manipulate the HTML and CSS on the page, respond to user events such as clicks and form submissions, and make requests to servers (using technologies such as XMLHttpRequest or fetch).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;As the JavaScript code is executed, it can modify the content and appearance of the web page in real-time, making the page dynamic and interactive.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I hope this helps! Let me know if you have any other questions.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
