<?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: Uyai-Abasi</title>
    <description>The latest articles on DEV Community by Uyai-Abasi (@uyaiabasi).</description>
    <link>https://dev.to/uyaiabasi</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%2F905238%2F50e941af-1963-43da-86c4-d5db95bf35da.png</url>
      <title>DEV Community: Uyai-Abasi</title>
      <link>https://dev.to/uyaiabasi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/uyaiabasi"/>
    <language>en</language>
    <item>
      <title>LEARNING REACT</title>
      <dc:creator>Uyai-Abasi</dc:creator>
      <pubDate>Fri, 03 Nov 2023 08:03:41 +0000</pubDate>
      <link>https://dev.to/uyaiabasi/day-1-of-30daysofcode-learning-react-18cf</link>
      <guid>https://dev.to/uyaiabasi/day-1-of-30daysofcode-learning-react-18cf</guid>
      <description>&lt;p&gt;Just learned the &lt;strong&gt;basic concept of react: Intro &amp;amp; Installation&lt;/strong&gt;&lt;br&gt;
React is an open-source JavaScript library for building interactive and dynamic user interfaces&lt;br&gt;
It was developed and is maintained by Facebook.&lt;/p&gt;

&lt;h2&gt;
  
  
  To get started with react,
&lt;/h2&gt;

&lt;p&gt;you'll need Node.js and Node Package Manager installed on your system why beacuse they provide the necessary runtime environment, package management, and tools to create, build, and manage React apps.&lt;br&gt;
you can install from the official website &lt;a href="https://t.co/BRgERMoXz0"&gt;https://t.co/BRgERMoXz0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After a successful installation,&lt;/p&gt;

&lt;h2&gt;
  
  
  To create a react app,
&lt;/h2&gt;

&lt;p&gt;you open your terminal or command prompt to run the comand&lt;br&gt;
&lt;code&gt;npx create-react-app react-app&lt;/code&gt;&lt;br&gt;
Here, &lt;code&gt;react-app&lt;/code&gt; is the name you choose for your project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eGVhcdSI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fa3ztjgeu91mv1rgoiku.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eGVhcdSI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fa3ztjgeu91mv1rgoiku.png" alt=" Creating a new React app. " width="781" height="828"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  To run a react app,
&lt;/h2&gt;

&lt;p&gt;you need to be on your app directory. And to  do that change directory, run the command &lt;br&gt;
&lt;code&gt;cd  react-app&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--t75va98C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/486lpo7ad0n2iafblkvx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--t75va98C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/486lpo7ad0n2iafblkvx.png" alt="Changing the directory to 'react-app" width="783" height="72"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally,to open a React app in a web browser, allowing any changes you make to your code reflect in real-time,&lt;br&gt;
run the command&lt;br&gt;
&lt;code&gt;npm start&lt;/code&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zykx1VPd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qlre8sq8ngtgejr64px5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zykx1VPd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qlre8sq8ngtgejr64px5.png" alt=" Starting the React app for real-time testing" width="800" height="402"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3Cv6oTZ5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ysqhd63a49wpvgt8u9wx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3Cv6oTZ5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ysqhd63a49wpvgt8u9wx.png" alt="port http://localhost:3000/" width="763" height="804"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can access your React app in a web browser at &lt;a href="http://localhost:3000/"&gt;http://localhost:3000/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And that's it!! 🎉🥳🎊&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Reverse string in JavaScript</title>
      <dc:creator>Uyai-Abasi</dc:creator>
      <pubDate>Mon, 27 Mar 2023 11:07:25 +0000</pubDate>
      <link>https://dev.to/uyaiabasi/how-to-reverse-string-in-javascript-ppj</link>
      <guid>https://dev.to/uyaiabasi/how-to-reverse-string-in-javascript-ppj</guid>
      <description>&lt;p&gt;Hello and welcome to my first article! As a tech newbie myself, I understand how daunting it can be to dive into the world of technology. But fear not! This article is designed to provide you with a basic introduction to the topic at hand, and I hope it will help you gain a better understanding of the subject.&lt;/p&gt;

&lt;p&gt;So sit back, relax, and get ready to learn something new. Let's dive into the fascinating world of technology together!&lt;/p&gt;

&lt;p&gt;In programming, string manipulation is a common task that is required to achieve various objectives. One such task is to reverse a string. A string reversal means to change the order of the characters in a string. For instance, reversing the string "Hello" will give "olleH". In this article, we will discuss how to reverse a string in JavaScript.&lt;/p&gt;

&lt;p&gt;There are several ways to reverse a string in JavaScript. We will discuss some of the most commonly used methods below.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using the split(), reverse(), and join() methods
This is the most commonly used method to reverse a string in JavaScript. It involves splitting the string into an array of characters, reversing the array, and then joining the array back into a string.
Here's how to do it:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const str = "Hello";
const reversedStr = str.split("").reverse().join("");

console.log(reversedStr);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The split() method splits the string into an array of characters, the reverse() method reverses the order of the elements in the array, and the join() method joins the elements of the array back into a string.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using a for loop&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Another way to reverse a string is to use a for loop. This method involves iterating through the string from the last character to the first character and concatenating the characters into a new string.&lt;/p&gt;

&lt;p&gt;Here's how to do it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const str = "Hello";
let reversedStr = "";
for (let i = str.length - 1; i &amp;gt;= 0; i--) {
  reversedStr += str[i];
}
console.log(reversedStr);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This method initializes an empty string and then iterates through the original string from the last character to the first character using a for loop. In each iteration, the current character is concatenated to the new string.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using recursion&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Another way to reverse a string is to use recursion. This method involves calling a function recursively to reverse the string.&lt;/p&gt;

&lt;p&gt;Here's how to do it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function reverseString(str) {
  if (str === "") {
    return "";
  } else {
    return reverseString(str.substr(1)) + str.charAt(0);
  }
}
console.log(reverseString("Hello"));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This method checks if the string is empty. If it is, it returns an empty string. If it is not empty, it calls the function recursively with the substring starting from the second character and concatenates the first character to the end.&lt;/p&gt;

&lt;p&gt;In conclusion, there are several ways to reverse a string in JavaScript. The most commonly used method involves using the split(), reverse(), and join() methods. Other methods include using a for loop and recursion. Each method has its advantages and disadvantages, and the best method to use depends on the specific requirements of the project.&lt;/p&gt;

&lt;p&gt;Thank you for reading to this point, I hope this was helpful in some way.&lt;/p&gt;

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