<?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: { PilaGonzalez }</title>
    <description>The latest articles on DEV Community by { PilaGonzalez } (@pilag_).</description>
    <link>https://dev.to/pilag_</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%2F1051222%2F02c25245-bdb0-4f34-bec4-0b4895997a15.jpg</url>
      <title>DEV Community: { PilaGonzalez }</title>
      <link>https://dev.to/pilag_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pilag_"/>
    <language>en</language>
    <item>
      <title>Node</title>
      <dc:creator>{ PilaGonzalez }</dc:creator>
      <pubDate>Thu, 13 Feb 2025 22:58:06 +0000</pubDate>
      <link>https://dev.to/pilag_/node-5n9</link>
      <guid>https://dev.to/pilag_/node-5n9</guid>
      <description></description>
      <category>node</category>
    </item>
    <item>
      <title>Unlocking Motivation or How I Built a Flashcard App with Vanilla JavaScript to Learn German 🚀📚</title>
      <dc:creator>{ PilaGonzalez }</dc:creator>
      <pubDate>Wed, 17 Apr 2024 14:10:41 +0000</pubDate>
      <link>https://dev.to/pilag_/unlocking-motivation-or-how-i-built-a-flashcard-app-with-vanilla-javascript-to-learn-german-32jn</link>
      <guid>https://dev.to/pilag_/unlocking-motivation-or-how-i-built-a-flashcard-app-with-vanilla-javascript-to-learn-german-32jn</guid>
      <description>&lt;p&gt;💡 It's amazing how technology can be a catalyst for personal growth and learning journeys!&lt;/p&gt;

&lt;p&gt;Lately, I've been on a quest to reignite🔥my passion for learning German. 🇩🇪 However, like many language learners, I've faced the hurdle of staying motivated. &lt;/p&gt;

&lt;p&gt;But guess what? I found a creative solution to tackle this challenge head-on: I built my very own flashcard app! ✨✨&lt;/p&gt;

&lt;p&gt;Using Vanilla hashtag#JavaScript, I embarked on this journey of language learning and coding. 🚀 Through this project, not only did I dive deep into the intricacies of JavaScript, but I also rediscovered my enthusiasm for mastering German.&lt;/p&gt;

&lt;p&gt;Here's a glimpse into what I've learned along the way:&lt;/p&gt;

&lt;p&gt;🔍 Dataset Property: Leveraging the dataset property to efficiently store data within the DOM, enabling seamless interaction with my flashcards.&lt;/p&gt;

&lt;p&gt;🔄 forEach Method: Harnessing the power of the forEach method to elegantly loop through arrays, streamlining the handling of data within my app.&lt;/p&gt;

&lt;p&gt;🔀 Switch Statement: Delving into the versatility of the switch statement, empowering dynamic decision-making within the app's functionality.&lt;/p&gt;

&lt;p&gt;➕ createElement &amp;amp; Toggle Classes: Embracing createElement to dynamically generate elements and toggle classes, enhancing the user experience and interface.&lt;/p&gt;

&lt;p&gt;This project has been an exhilarating blend of language learning and coding prowess. &lt;/p&gt;

&lt;p&gt;But here's the best part: This is an open-source project, and I invite anyone passionate about language learning or JavaScript development to collaborate! Let's make learning languages more engaging and accessible together. 💬✨. &lt;br&gt;
Link: &lt;a href="https://lnkd.in/erqP5U5G"&gt;https://lnkd.in/erqP5U5G&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's continue to inspire and empower each other on our quest for knowledge and mastery. 💬✨ &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Basic Exercises in JavaScript | Reverse a string (7 different ways)</title>
      <dc:creator>{ PilaGonzalez }</dc:creator>
      <pubDate>Thu, 21 Sep 2023 09:34:12 +0000</pubDate>
      <link>https://dev.to/pilag_/how-to-reverse-a-string-in-javascript-7-different-ways-2i5o</link>
      <guid>https://dev.to/pilag_/how-to-reverse-a-string-in-javascript-7-different-ways-2i5o</guid>
      <description>&lt;h2&gt;
  
  
  Solution #1
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function reverseString(str) {
     return str.split('').reverse().join('');
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Test
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(reverseString('hello')); // olleh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step by Step
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;str.split('')&lt;/code&gt;: This line takes the input string &lt;code&gt;str&lt;/code&gt; and uses the split('') method. The split method is used to split a string into an array of substrings. In this case, it splits the string into an array of individual characters. The argument &lt;code&gt;''&lt;/code&gt; is an empty string, which means it will split the string at every character, effectively converting the string into an array of characters. For example, if &lt;code&gt;str&lt;/code&gt; is &lt;code&gt;"hello,"&lt;/code&gt; this line would produce the array &lt;code&gt;['h', 'e', 'l', 'l', 'o']&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.reverse()&lt;/code&gt;: After splitting the string into an array of characters, the &lt;code&gt;reverse()&lt;/code&gt; method is called on that array. This method reverses the order of elements in an array. So, if the array was &lt;code&gt;['h', 'e', 'l', 'l', 'o']&lt;/code&gt;, after calling &lt;code&gt;reverse()&lt;/code&gt;, it becomes &lt;code&gt;['o', 'l', 'l', 'e', 'h']&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.join('')&lt;/code&gt;: Finally, the &lt;code&gt;join('')&lt;/code&gt; method is called on the reversed array. This method joins all the elements of the array back together into a single string, with no characters in between. In other words, it concatenates the characters of the array. So, in this case, it joins &lt;code&gt;['o', 'l', 'l', 'e', 'h']&lt;/code&gt; into the string &lt;code&gt;"olleh,"&lt;/code&gt; which is the reversed version of the input string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The end result is that the &lt;code&gt;reverseString&lt;/code&gt; function takes an input string, splits it into an array of characters, reverses the order of those characters, and then joins them back together to form the reversed string, which is then returned as the function's result.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Solution #2
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function reverseString(str) {
     return [...str].reverse().join('');
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Test
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(reverseString('hello')); // olleh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step by Step
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;return [...str]&lt;/code&gt;: This part of the code uses the spread operator (&lt;code&gt;[...]&lt;/code&gt;) to convert the input string &lt;code&gt;str&lt;/code&gt; into an array of characters. This is done by splitting the string into individual characters and creating an array from them.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.reverse()&lt;/code&gt;: After converting the string to an array of characters, the &lt;code&gt;reverse()&lt;/code&gt; method is called on the array. This method reverses the order of elements in the array, effectively reversing the order of characters in the original string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.join('')&lt;/code&gt;: Finally, the &lt;code&gt;join('')&lt;/code&gt; method is called on the reversed array to concatenate its elements back together into a single string. The empty string '' passed as an argument to &lt;code&gt;join()&lt;/code&gt; specifies that there should be no separator between the characters, effectively merging them together.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;So, when you call &lt;code&gt;reverseString&lt;/code&gt; with a string as an argument, it converts the string into an array, reverses the order of the elements in the array, and then joins them back together into a reversed string, which is returned as the result of the function.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Solution #3
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function reverseString(str) {
     let reversed = '';
     for (let character of str) {
       reversed = character + reversed;
     }
     return reversed;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Test
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(reverseString('hello')); // olleh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step by Step
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;let reversed = '';&lt;/code&gt;: This line initializes an empty string reversed. This variable will be used to store the reversed version of the input string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;for (let character of str) { ... }&lt;/code&gt;: This is a &lt;em&gt;for...of loop&lt;/em&gt; that iterates through each character in the input string &lt;code&gt;str&lt;/code&gt;. It goes through the string one character at a time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;reversed = character + reversed;&lt;/code&gt;: Inside the loop, the current &lt;code&gt;character&lt;/code&gt; (a single character from &lt;code&gt;str&lt;/code&gt;) is concatenated to the beginning of the &lt;code&gt;reversed&lt;/code&gt; string. This effectively builds the &lt;code&gt;reversed&lt;/code&gt; string in reverse order. For example, if the input string is &lt;code&gt;"Hello,"&lt;/code&gt; the loop will first add &lt;code&gt;"o"&lt;/code&gt; to &lt;code&gt;reversed&lt;/code&gt;, then &lt;code&gt;"lo,"&lt;/code&gt; and so on until the entire string is reversed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The loop continues until it has processed all characters in the input string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finally, after the loop completes, the &lt;code&gt;reversed&lt;/code&gt; string contains the reversed version of the input string, and &lt;code&gt;return reversed;&lt;/code&gt; is used to return this reversed string as the result of the function.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Solution #4
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function reverseString(str) {
     let reversed = '';
     for (let i = str.length - 1; i &amp;gt;= 0; i--) {
       reversed += str[i];
     }
     return reversed;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Test
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(reverseString('hello')); // olleh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step by Step
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;let reversed = '';&lt;/code&gt;: This line initializes an empty string variable called reversed. This variable will be used to store the reversed string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;for (let i = str.length - 1; i &amp;gt;= 0; i--)&lt;/code&gt; {: This line starts a for loop. It initializes a loop variable &lt;code&gt;i&lt;/code&gt; to the length of the input string &lt;code&gt;str&lt;/code&gt; minus one (since array indices in JavaScript are zero-based), and the loop continues as long as &lt;code&gt;i&lt;/code&gt; is greater than or equal to 0. In each iteration, it decrements &lt;code&gt;i&lt;/code&gt; by 1.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;reversed += str[i];&lt;/code&gt;: Inside the loop, this line appends the character at the current index &lt;code&gt;i&lt;/code&gt; of the input string &lt;code&gt;str&lt;/code&gt; to the reversed string. This effectively reverses the characters in the string because it starts from the end of the input string and works its way backward.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The for loop continues until it has iterated through all the characters in the input string, effectively reversing the order of the characters.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finally, &lt;code&gt;return reversed;&lt;/code&gt; is used to return the reversed string, which now contains the input string with its characters reversed.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Solution #5
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function reverseString(str) {
     let reversed = '';
     str.split('').forEach(character =&amp;gt; reversed = character + reversed);
     return reversed;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Test
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(reverseString('hello')); // olleh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step by Step
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;let reversed = '';&lt;/code&gt;: This line initializes an empty string reversed, which will eventually hold the reversed version of the input string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;str.split('')&lt;/code&gt;: This part of the code splits the input string &lt;code&gt;str&lt;/code&gt; into an array of individual characters. The &lt;code&gt;split('')&lt;/code&gt; method is used with an empty string as the separator, which effectively splits the string into an array of characters.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;forEach(character =&amp;gt; reversed = character + reversed)&lt;/code&gt;: This is a loop that iterates over each character in the array of characters obtained from the input string. For each character, it appends that character to the beginning of the &lt;code&gt;reversed&lt;/code&gt; string. The &lt;code&gt;character + reversed&lt;/code&gt; expression concatenates the current character with the existing &lt;code&gt;reversed&lt;/code&gt; string. Since we are adding characters to the beginning of &lt;code&gt;reversed&lt;/code&gt;, the characters are effectively reversed.&lt;br&gt;
For example, if the input string is &lt;code&gt;"hello,"&lt;/code&gt; the loop would go through each character and build the reversed string like this:&lt;br&gt;
Iteration 1: 'h' + '' =&amp;gt; 'h'&lt;br&gt;
Iteration 2: 'e' + 'h' =&amp;gt; 'eh'&lt;br&gt;
Iteration 3: 'l' + 'eh' =&amp;gt; 'leh'&lt;br&gt;
Iteration 4: 'l' + 'leh' =&amp;gt; 'lleh'&lt;br&gt;
Iteration 5: 'o' + 'lleh' =&amp;gt; 'olleh'&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After the loop has finished processing all the characters in the input string, the &lt;code&gt;reversed&lt;/code&gt; variable will contain the reversed string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finally, &lt;code&gt;return reversed;&lt;/code&gt; returns the reversed string as the result of the &lt;code&gt;reverseString&lt;/code&gt; function.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Solution #6
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function reverseString(str) {
     let reversed = "";
     str.split("").map((character) =&amp;gt; (reversed = character + reversed));
     return reversed;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Test
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(reverseString('hello')); // olleh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step by Step
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;let reversed = '';&lt;/code&gt;: This line initializes an empty string variable called reversed. This variable will be used to store the reversed string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;str.split('')&lt;/code&gt;: This part of the code splits the input string &lt;code&gt;str&lt;/code&gt; into an array of individual characters. It does so by calling the &lt;code&gt;split('')&lt;/code&gt; method on the string with an empty string as the separator. This effectively separates each character in the string into an array element.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.map(character =&amp;gt; reversed = character + reversed)&lt;/code&gt;: This part of the code uses the &lt;code&gt;map&lt;/code&gt; function to iterate through each character in the array of characters created in the previous step. For each character, the code performs the following:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;character&lt;/code&gt;: This represents the current character in the iteration.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;reversed = character + reversed&lt;/code&gt;: This code concatenates the current character with the &lt;code&gt;reversed&lt;/code&gt; string. It adds the current character to the beginning of the &lt;code&gt;reversed&lt;/code&gt; string. This effectively reverses the order of characters since each character is added to the start of reversed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;return reversed;&lt;/code&gt;: After the &lt;code&gt;map&lt;/code&gt; function has processed all characters and reversed the string, the function returns the &lt;code&gt;reversed&lt;/code&gt; string as the result.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Solution #7
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function reverseString(str) {
    return str.split('').reduce((reversed, character) =&amp;gt; character + reversed, '');
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Test
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(reverseString('hello')); // olleh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step by Step
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;str.split('')&lt;/code&gt;: This line takes the input string &lt;code&gt;str&lt;/code&gt; and uses the &lt;code&gt;split&lt;/code&gt; method to split it into an array of individual characters. The argument &lt;code&gt;''&lt;/code&gt; is used as the separator, which means each character in the string will become a separate element in the resulting array. For example, if &lt;code&gt;str&lt;/code&gt; is &lt;code&gt;"hello,"&lt;/code&gt; the result will be &lt;code&gt;['h', 'e', 'l', 'l', 'o']&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.reduce((reversed, character) =&amp;gt; character + reversed, '')&lt;/code&gt;: After splitting the string into an array of characters, the &lt;code&gt;reduce&lt;/code&gt; method is called on the array. The &lt;code&gt;reduce&lt;/code&gt; method is used to iterate through the array and accumulate a single value based on the elements in the array.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;(reversed, character) =&amp;gt; character + reversed&lt;/code&gt;: This is an arrow function used as the callback function for reduce. It takes two parameters: &lt;code&gt;reversed&lt;/code&gt; and &lt;code&gt;character&lt;/code&gt;. &lt;code&gt;reversed&lt;/code&gt; is the accumulating value, which starts as an empty string &lt;code&gt;('')&lt;/code&gt;, and &lt;code&gt;character&lt;/code&gt; is the current character being processed from the array.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;character + reversed&lt;/code&gt;: In each iteration of &lt;code&gt;reduce&lt;/code&gt;, this expression concatenates the current character (&lt;code&gt;character&lt;/code&gt;) with the accumulated reversed string (&lt;code&gt;reversed&lt;/code&gt;). The &lt;code&gt;character&lt;/code&gt; is added in front of the existing &lt;code&gt;reversed&lt;/code&gt; string. This effectively builds the reversed version of the input string.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The result of the &lt;code&gt;reduce&lt;/code&gt; operation is the reversed string, which is returned by the r&lt;code&gt;everseString&lt;/code&gt; function.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;So, when you call &lt;code&gt;reverseString("hello")&lt;/code&gt;, it splits the string into an array of characters (&lt;code&gt;['h', 'e', 'l', 'l', 'o']&lt;/code&gt;) and then uses &lt;code&gt;reduce&lt;/code&gt; to reverse the order of these characters, resulting in the string &lt;code&gt;"olleh"&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  Notes
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;split()&lt;/code&gt; method splits a String object into an array of strings by separating the string into substrings, using a specified separator string to determine where to make each split.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;reverse()&lt;/code&gt; method reverses an array in place. The first array element becomes the last, and the last array element becomes the first.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;join()&lt;/code&gt; method creates and returns a new string by concatenating all of the elements in an array (or an array-like object), separated by commas or a specified separator string. If the array has only one item, then that item will be returned without using the separator.&lt;/li&gt;
&lt;li&gt;Notice that we don’t leave a space between the empty quote marks for &lt;code&gt;.join(‘ ‘)&lt;/code&gt;. The space is necessary otherwise the string returned would have each character separated from the rest by a comma.&lt;/li&gt;
&lt;li&gt;The spread operator is used to expand an iterable object into the list of arguments.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;forEach()&lt;/code&gt; method executes a provided function once for each array element.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;map()&lt;/code&gt; method creates a new array populated with the results of calling a provided function on every element in the calling array.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;reduce()&lt;/code&gt; method executes a reducer function (that you provide) on each element of the array, resulting in a single output value.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;My GitHub: &lt;a href="https://github.com/Pilag6"&gt;https://github.com/Pilag6&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.freecodecamp.org/news/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb/"&gt;https://www.freecodecamp.org/news/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

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