<?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: Aosorio10</title>
    <description>The latest articles on DEV Community by Aosorio10 (@aosorio10).</description>
    <link>https://dev.to/aosorio10</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1033246%2Ff7b07973-90a6-424e-938f-bdcfeff8069b.jpeg</url>
      <title>DEV Community: Aosorio10</title>
      <link>https://dev.to/aosorio10</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aosorio10"/>
    <language>en</language>
    <item>
      <title>Phase 1</title>
      <dc:creator>Aosorio10</dc:creator>
      <pubDate>Sun, 09 Jul 2023 22:13:47 +0000</pubDate>
      <link>https://dev.to/aosorio10/phase-1-54nn</link>
      <guid>https://dev.to/aosorio10/phase-1-54nn</guid>
      <description>&lt;p&gt;My Phase One project (Formula 1) at Flatiron School was a challenging yet rewarding experience. I gained valuable knowledge in JavaScript, Node.js, DOM manipulation, and HTML. Throughout the phase, I faced difficulties understanding DOM manipulation terminology but managed to incorporate it into my code. Here's an example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uW-4kmRr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zihitz816fmr5jrncvko.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uW-4kmRr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zihitz816fmr5jrncvko.png" alt="Javascript code " width="547" height="98"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the first image, I declared a variable searchInput using const. I used document.getElementById('searchInput') to select an element with a unique ID from the DOM.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--D-3Rdg6x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nnqj8ccj8tspzebyz991.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--D-3Rdg6x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nnqj8ccj8tspzebyz991.png" alt="HTML code" width="430" height="81"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the second image, I showed an HTML code snippet with elements assigned unique IDs. These IDs enable specific element selection and manipulation. The document.getElementById() method is commonly used for this purpose. For instance:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-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;racersContainer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;racersContainer&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When working with the DOM in JavaScript, these IDs can be utilized to select and manipulate specific elements. The document.getElementById() method is commonly used for this purpose. For example, to select the element with the ID "racersContainer," you would use the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-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;racersContainer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;racersContainer&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code assigns the element with the ID "racersContainer" to the variable racersContainer, allowing you to perform various operations on it.&lt;/p&gt;

&lt;p&gt;This code assigns the element with the ID "racersContainer" to the variable racersContainer, allowing various operations on it.&lt;/p&gt;

&lt;p&gt;I also encountered challenges distinguishing between document.querySelectorAll() and document.querySelector(). Here's a brief explanation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;document.querySelectorAll(): This method returns a list of all the elements in the document that match a specific CSS selector. It returns a NodeList, which is similar to an array and allows you to access and iterate over the selected elements. For example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-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;elements&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.myClass&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, all elements with the class "myClass" will be selected and stored in the elements variable.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;document.querySelector(): This method returns the first element that matches a specific CSS selector. It returns a single element, even if there are multiple elements that match the selector. For example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-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;element&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;#myElement&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, the first element with the ID "myElement" will be selected and stored in the element variable.&lt;/p&gt;

&lt;p&gt;In summary, document.querySelectorAll() selects multiple elements based on a CSS selector, returning a NodeList, while document.querySelector() selects the first element that matches a CSS selector and returns a single element.&lt;/p&gt;

&lt;p&gt;For more information about the DOM visit: &lt;br&gt;
&lt;a href="https://www.w3schools.com/jsref/dom_obj_document.asp"&gt;https://www.w3schools.com/jsref/dom_obj_document.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Javascript</title>
      <dc:creator>Aosorio10</dc:creator>
      <pubDate>Sun, 25 Jun 2023 13:09:27 +0000</pubDate>
      <link>https://dev.to/aosorio10/javascript-1k0e</link>
      <guid>https://dev.to/aosorio10/javascript-1k0e</guid>
      <description>&lt;p&gt;I embark on a boot camp journey a few months ago, I found myself diving headfirst into the world of JavaScript without any prior knowledge of the language. It was a challenging and sometimes overwhelming experience. &lt;/p&gt;

&lt;p&gt;At the beginning of my journey, I faced numerous hurdles in grasping fundamental concepts. I vividly remember spending significant time trying to understand what a function was, how to declare a variable, or even comprehend the concept of using callbacks. Additionally, the notion of an array being an object, and the arrow function method. To aid my understanding better I watching Spanish-language videos on YouTube and reading Spanish tutorials to bridge the language barrier. It was a challenge, but with persistence, I began to unravel the mysteries of JavaScript.&lt;/p&gt;

&lt;p&gt;Despite the initial difficulties, I soon realized that the more I practiced, the faster my learning curve became. I immersed myself in various JavaScript concepts, such as using the fetch API, declaring anonymous functions, manipulating the Document Object Model (DOM), accessing elements by ID, and mastering conditional statements like If, Else, and Else if. Each new concept I grasped propelled me further, igniting a sense of excitement and accomplishment. Not only did I gain proficiency in JavaScript, but I also expanded my skills in other essential areas of web development. I learned how to debug my code, troubleshoot errors, and analyze the flow of execution. Working with CSS and HTML became second nature to me, allowing me to create visually appealing and responsive web interfaces. Additionally, I discovered the power of pseudocode as a tool to plan and organize my code, even though it sometimes posed a challenge as I had to write it in English.&lt;/p&gt;

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