<?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: Karthick (k)</title>
    <description>The latest articles on DEV Community by Karthick (k) (@karthick_07).</description>
    <link>https://dev.to/karthick_07</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%2F3924592%2Fc7d24a28-37c4-4afc-af8e-88377a701cba.png</url>
      <title>DEV Community: Karthick (k)</title>
      <link>https://dev.to/karthick_07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karthick_07"/>
    <language>en</language>
    <item>
      <title>JavaScript Math Reference</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Thu, 02 Jul 2026 06:10:08 +0000</pubDate>
      <link>https://dev.to/karthick_07/javascript-math-reference-4o0g</link>
      <guid>https://dev.to/karthick_07/javascript-math-reference-4o0g</guid>
      <description>&lt;p&gt;This guide is your complete reference to every Math property and method in JavaScript, all in one place — clean, concise, and ready to bookmark.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is the Math Object?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The Math object in JavaScript lets you perform mathematical operations on numbers — everything from trigonometry and logarithms to rounding and random generation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Math.sqrt(16); // 4
Math.PI;       // 3.141592653589793
Math.random(); // 0.5739201837
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa2ou4c1gx3so2ge1lce0.webp" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa2ou4c1gx3so2ge1lce0.webp" alt=" " width="775" height="661"&gt;&lt;/a&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fovipkhlfj2wuf14fehq4.webp" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fovipkhlfj2wuf14fehq4.webp" alt=" " width="800" height="678"&gt;&lt;/a&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fws71owuyck8f32trhx0t.webp" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fws71owuyck8f32trhx0t.webp" alt=" " width="800" height="515"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Commonly Used Examples&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;Math.max(10, 20, 5);  // → 20
Math.min(2, -3, 7);   // → -3
Math.pow(2, 3);       // → 8
Math.sign(-12);       // → -1
Math.floor(4.9);      // → 4
Math.random();        // → random value between 0–1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Want a random integer between 1 and 6 (like a dice roll)? Here’s your quick snippet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Math.floor(Math.random() * 6) + 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;More References&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For a complete deep-dive on all JavaScript methods, syntax, and advanced examples, check the &lt;strong&gt;official MDN documentation&lt;/strong&gt; or your favourite JS reference site.&lt;br&gt;
(&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math" rel="noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to Make a Resume</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Wed, 01 Jul 2026 14:01:04 +0000</pubDate>
      <link>https://dev.to/karthick_07/how-to-make-a-resume-1eh9</link>
      <guid>https://dev.to/karthick_07/how-to-make-a-resume-1eh9</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is a Resume&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A resume is a concise document that summarises your skills, experiences, and achievements to showcase your qualifications for a job. Understanding resume writing how-to is essential for creating a compelling resume that stands out. When learning how a resume is written, it’s important to focus on formatting, clarity, and relevance. Effective resume writing involves choosing the right structure, highlighting your most significant accomplishments, and tailoring the content to the job you’re applying for. By mastering how to write a resume, you can create a powerful tool that captures the attention of potential employers and helps you advance in your career.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F25l0wfpg4bnjvqqc85yk.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F25l0wfpg4bnjvqqc85yk.jpg" alt=" " width="800" height="376"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am attending a meeting with Payilagam Academy, and we got experiences and understanding of resume writing and how it is important the resume bulding resume and how it is essential for creating a resume. In the &lt;strong&gt;Muthu Sir&lt;/strong&gt; meeting, Sir told me to write a resume for 10 minutes. C Joseph Vijay is a session very clear and powerful about resume-building written a small resume building about C Joseph Vijay.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;C. Joseph Vijay&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Summary:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;C. Joseph Vijay is a former Chief Minister of Tamil Nadu. He founded the political party Tamilaga Vettri Kazhagam (TVK) in 2024 and recently took office as Chief Minister. Born on June 22, 1974, he is an Indian film actor and has been the ninth Chief Minister of Tamil Nadu since May 2, 2026. Vijay is recognised as the highest-paid actor in Tamil cinema. He is now applying for the post of Prime Minister. During his tenure as Chief Minister, he has initiated several projects, positioning him as a strong candidate for the role of Prime Minister.&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

</description>
      <category>ai</category>
      <category>resume</category>
      <category>career</category>
      <category>programming</category>
    </item>
    <item>
      <title>JavaScript DOM</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Tue, 30 Jun 2026 16:13:54 +0000</pubDate>
      <link>https://dev.to/karthick_07/javascript-dom-4k2a</link>
      <guid>https://dev.to/karthick_07/javascript-dom-4k2a</guid>
      <description>&lt;p&gt;Exploring JavaScript:&lt;br&gt;
I am writing this because I have done several projects today, several projects done, and JavaScript DOM projects,&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;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Task -8 Word Counter&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;Word Counter&amp;lt;/h1&amp;gt;

    &amp;lt;textarea id="Mytext" rows="7" cols="45" placeholder="Enter Something....."&amp;gt;&amp;lt;/textarea&amp;gt;
    &amp;lt;p&amp;gt;Words :&amp;lt;span id="wordcount"&amp;gt;0&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;
    &amp;lt;p&amp;gt;Character :&amp;lt;span id="charcount"&amp;gt;0&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;



    &amp;lt;script&amp;gt;
        let Mytext1 = document.getElementById("Mytext");
        let wordcount1 = document.getElementById("wordcount");
        let charcount1=document.getElementById("charcount")


        Mytext1.addEventListener("input", function () {
            wordcount1.textContent = Mytext1.value.split(" ").length;
            charcount1. textContent=Mytext1.value.length;

        })


    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzb3rocqucsi69tyxd6sv.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzb3rocqucsi69tyxd6sv.png" alt=" " width="768" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Today learned some interview questions about DOM JavaScript.&lt;/p&gt;

&lt;p&gt;1.Get element=getElementById("id").&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;display on-screen content: text content.&lt;/li&gt;
&lt;li&gt;innertext=show only gets visible text.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Conclusion:&lt;br&gt;
Through this simple example, I've gained a deeper understanding of event handling in JavaScript and how we can dynamically manipulate the Document Object Model (DOM).&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>JavaScript DOM: The Backbone of Interactive Web Applications</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Mon, 29 Jun 2026 12:27:59 +0000</pubDate>
      <link>https://dev.to/karthick_07/javascript-dom-the-backbone-of-interactive-web-applications-1hfo</link>
      <guid>https://dev.to/karthick_07/javascript-dom-the-backbone-of-interactive-web-applications-1hfo</guid>
      <description>&lt;h2&gt;
  
  
  Exploring JavaScript: Understanding &lt;code&gt;addEventListener&lt;/code&gt; and &lt;code&gt;textContent&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;In my recent exploration of web development, I delved into the fascinating world of JavaScript, particularly the use of &lt;code&gt;addEventListener&lt;/code&gt; and &lt;code&gt;textContent&lt;/code&gt;. I designed a simple HTML page to demonstrate these concepts, and I wanted to share my findings and the code with you all.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Code
&lt;/h3&gt;

&lt;p&gt;Here's the HTML structure I've created:&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="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1.0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Button link&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"mytext"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Welcome to Html&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h3&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"mytext-1"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;welcome to DOM&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"myBtn"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;submit&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
        &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;text_new&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="nf"&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;mytext&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;text_new_two&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="nf"&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;mytext-1&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;button_values&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="nf"&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;myBtn&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="nx"&gt;button_values&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;click&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

            &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nx"&gt;text_new&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Welcome to Javascript Roadmap&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="nx"&gt;text_new_two&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Welcome to DOM Roadmap&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="nx"&gt;text_new&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Welcome to HTML&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="nx"&gt;text_new_two&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Welcome to DOM&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&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;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Explanation
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;HTML Structure&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The code starts with a simple HTML structure including two header tags (&lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt;) and a button. The headers display some introductory text.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;JavaScript Functionality&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I used JavaScript to add interactivity. With the &lt;code&gt;addEventListener&lt;/code&gt; method, I attached a click event to the button.&lt;/li&gt;
&lt;li&gt;The click event toggles the content of the headers between two states. The first click changes the text to welcome messages related to JavaScript and the DOM roadmap. A subsequent click resets the text back to the original messages.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Understanding &lt;code&gt;addEventListener&lt;/code&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This method is essential for handling events in JavaScript. It allows us to execute a function whenever a specified event occurs (in this case, a click event).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Using &lt;code&gt;textContent&lt;/code&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;textContent&lt;/code&gt; property sets or returns the text content of the specified node and its descendants. It allows us to dynamically change the text displayed in our HTML elements based on interaction.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Through this simple example, I've gained a deeper understanding of event handling in JavaScript and how we can dynamically manipulate the Document Object Model (DOM). The &lt;code&gt;addEventListener&lt;/code&gt; and &lt;code&gt;textContent&lt;/code&gt; features empower developers to create engaging and interactive web applications. &lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>javascriptlibraries</category>
      <category>eventdriven</category>
    </item>
    <item>
      <title>🚀 My First ChennaiPy Meetup Experience – Learning Beyond the Classroom</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Sun, 28 Jun 2026 10:17:50 +0000</pubDate>
      <link>https://dev.to/karthick_07/my-first-chennaipy-meetup-experience-learning-beyond-the-classroom-1h7g</link>
      <guid>https://dev.to/karthick_07/my-first-chennaipy-meetup-experience-learning-beyond-the-classroom-1h7g</guid>
      <description>&lt;p&gt;I attended the ChennaiPy meetup at IMSc (Institute of Mathematical Sciences), Chennai.&lt;/p&gt;

&lt;p&gt;As a student who is learning Python and software development, this was one of the most valuable experiences I've had outside the classroom.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical Sessions&lt;/strong&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq32727gldchebppamqwu.webp" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq32727gldchebppamqwu.webp" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The speakers covered several interesting topics.&lt;/p&gt;

&lt;p&gt;One session introduced the Linux Graphics Stack, explaining how graphics work in Linux systems and how different layers interact.&lt;/p&gt;

&lt;p&gt;Another session focused on team collaboration, showing how development teams manage projects, communicate effectively, and build software together.&lt;/p&gt;

&lt;p&gt;There was also a discussion about AI Agents, modern AI tools, and how developers can build Minimum Viable Products (MVPs) quickly using Python and AI technologies.&lt;/p&gt;

&lt;p&gt;These talks helped me understand that software development is much more than writing code. It also involves collaboration, problem-solving, and choosing the right tools.&lt;/p&gt;

&lt;p&gt;Networking During Tea Break ☕&lt;/p&gt;

&lt;p&gt;One of the best parts of the meetup was the networking session during the tea break.&lt;/p&gt;

&lt;p&gt;I spoke with several experienced software engineers.&lt;/p&gt;

&lt;p&gt;One engineer from Cisco shared valuable career advice and explained the interview process followed in many companies.&lt;/p&gt;

&lt;p&gt;I was also fortunate to receive a referral opportunity, which motivated me to continue improving my skills.&lt;/p&gt;

&lt;p&gt;Talking with professionals who have 10–12 years of industry experience gave me a much clearer understanding of what companies expect from developers.&lt;/p&gt;

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

&lt;p&gt;A big thank you to the ChennaiPy community, the speakers, volunteers, and everyone who made this event possible.&lt;/p&gt;

&lt;p&gt;I'm looking forward to attending more meetups and continuing my learning journey.&lt;/p&gt;

</description>
      <category>chennaipy</category>
      <category>meetup</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>JavaScript DOM</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Fri, 26 Jun 2026 05:54:45 +0000</pubDate>
      <link>https://dev.to/karthick_07/javascript-dom-81i</link>
      <guid>https://dev.to/karthick_07/javascript-dom-81i</guid>
      <description>&lt;p&gt;DOM stands for Document Object Model.&lt;/p&gt;

&lt;p&gt;DOM API provides a set of functions and methods to modify the HTML document dynamically via JavaScript.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzpot0x2748tvhbhsl1kl.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzpot0x2748tvhbhsl1kl.png" alt=" " width="641" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;getElementById() – select an element by ID.&lt;/p&gt;

&lt;p&gt;getElementsByName() – select elements by name.&lt;/p&gt;

&lt;p&gt;getElementsByTagName()  – select elements by a tag name.&lt;/p&gt;

&lt;p&gt;getElementsByClassName() – select elements by one or more class names.&lt;/p&gt;

&lt;p&gt;querySelector()  – select elements by CSS selectors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example: This example shows accessing the JavaScript HTML DOM by id.&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;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
    &amp;lt;h1 id="demo"&amp;gt;This is some text.&amp;lt;/h1&amp;gt;
    &amp;lt;button onclick="changeText()"&amp;gt;
      Change Text
      &amp;lt;/button&amp;gt;

    &amp;lt;script&amp;gt;
        function changeText() {
            let element = document.getElementById("demo");
            element.textContent = "Text changed by JavaScript!";
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Accessing Elements in the DOM&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;getElementById()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let heading = document.getElementById("title");&lt;br&gt;
console.log(heading.textContent);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;getElementsByClassName()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Returns a collection of elements with a specified class.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let items = document.getElementsByClassName("list-item");&lt;br&gt;
console.log(items[0].textContent);&lt;/code&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>javascript</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>JavaScript Rest Parameters</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Thu, 25 Jun 2026 15:57:24 +0000</pubDate>
      <link>https://dev.to/karthick_07/javascript-rest-parameters-gan</link>
      <guid>https://dev.to/karthick_07/javascript-rest-parameters-gan</guid>
      <description>&lt;h1&gt;
  
  
  How I Finally Understood JavaScript Rest Parameters (...args)
&lt;/h1&gt;

&lt;p&gt;As a beginner learning JavaScript, I was confused when I first saw the &lt;code&gt;...args&lt;/code&gt; syntax. I thought it was something very advanced. After practising, I realised it is actually simple and very useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Rest Parameter?
&lt;/h2&gt;

&lt;p&gt;A rest parameter allows us to collect multiple arguments into a single array.&lt;/p&gt;

&lt;p&gt;Example:&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;function&lt;/span&gt; &lt;span class="nf"&gt;showNumbers&lt;/span&gt;&lt;span class="p"&gt;(...&lt;/span&gt;&lt;span class="nx"&gt;numbers&lt;/span&gt;&lt;span class="p"&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="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;showNumbers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&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="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;...numbers&lt;/code&gt; syntax collects all values and stores them in an array called &lt;code&gt;numbers&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Use Rest Parameters?
&lt;/h2&gt;

&lt;p&gt;Sometimes we don't know how many values a user will pass to a function.&lt;/p&gt;

&lt;p&gt;For example:&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="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of creating many parameters, we can use a rest parameter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example: Sum All Numbers
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(...&lt;/span&gt;&lt;span class="nx"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;total&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;total&lt;/span&gt;&lt;span class="p"&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="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&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="mi"&gt;100&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;...args&lt;/code&gt; collects multiple values.&lt;/li&gt;
&lt;li&gt;Rest parameters create an array.&lt;/li&gt;
&lt;li&gt;They are useful when we don't know the number of arguments.&lt;/li&gt;
&lt;li&gt;They are commonly used in modern JavaScript.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As a beginner, practising small examples helped me understand this concept much better than just reading the theory.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>JavaScript Array Methods</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Tue, 23 Jun 2026 07:33:14 +0000</pubDate>
      <link>https://dev.to/karthick_07/javascript-array-methods-5a15</link>
      <guid>https://dev.to/karthick_07/javascript-array-methods-5a15</guid>
      <description>&lt;p&gt;&lt;strong&gt;JavaScript .forEach() for Array Iteration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The .forEach() Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The .forEach() method is an array method that takes a callback function as an argument. It iterates through the elements in the array and executes the callback function on each element. The callback function can be defined as a function expression, an arrow function or a reference to a function. The syntax for .forEach() with an arrow function is as follows:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The syntax for .forEach()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;array.forEach((element) =&amp;gt; {&lt;br&gt;
  // do something with element&lt;br&gt;
});&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Iterating Over an Array with .forEach()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;let numbers = [1, 2, 3, 4, 5];&lt;/p&gt;

&lt;p&gt;&lt;code&gt;for (let i = 0; i &amp;lt; numbers.length; i++) {&lt;br&gt;
  console.log(numbers[i]);&lt;br&gt;
}&lt;br&gt;
/*&lt;br&gt;
OUTPUT&lt;br&gt;
1&lt;br&gt;
2&lt;br&gt;
3&lt;br&gt;
4&lt;br&gt;
5&lt;br&gt;
*/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Or you could do it with the .forEach() method like this:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;`let numbers = [1, 2, 3, 4, 5];&lt;/p&gt;

&lt;p&gt;numbers.forEach((number) =&amp;gt; console.log(number));&lt;br&gt;
/*&lt;br&gt;
OUTPUT&lt;br&gt;
1&lt;br&gt;
2&lt;br&gt;
3&lt;br&gt;
4&lt;br&gt;
5&lt;br&gt;
*/`&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Arguments of the .forEach() Callback Function&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The callback function that you pass to the .forEach() method can take up to three arguments. The first argument is the current element in the array. The second argument is the index of the current element. The third argument is the array itself:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;array.forEach((element, index, array) =&amp;gt; {&lt;br&gt;
  // do something with element, index, and array&lt;br&gt;
});&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The arguments are as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;element: The current element in the array&lt;/li&gt;
&lt;li&gt;index: The index of the current element&lt;/li&gt;
&lt;li&gt;array: The array itself&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;em&gt;JavaScript Map Array Method *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The .map() method effectively "maps" the values to a new array.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to Use the Map Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A map, in programming terms, is a transformation of values. The .map() method is a way for you to say, "transform each value according to my instructions". Maybe you want to double each value in the list? With .map(), it's straightforward:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;const values = [1, 2, 3, 4, 5];&lt;br&gt;
values. map((value) =&amp;gt; value * 2); // [2, 4, 6, 8, 10]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Arguments to the .map() Callback&lt;/p&gt;

&lt;p&gt;Like many array methods, the callback accepts more arguments than just the element in the array. With .map() it calls the callback with the element, index, and original array.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;const values = [1, 2, 3, 4, 5];&lt;br&gt;
values.map((value, index, array) =&amp;gt; {&lt;br&gt;
    console.log(value, index, array);&lt;br&gt;
});&lt;br&gt;
// 1 0 [ 1, 2, 3, 4, 5 ]&lt;br&gt;
// 2 1 [ 1, 2, 3, 4, 5 ]&lt;br&gt;
// 3 2 [ 1, 2, 3, 4, 5 ]&lt;br&gt;
// 4 3 [ 1, 2, 3, 4, 5 ]&lt;br&gt;
// 5 4 [ 1, 2, 3, 4, 5 ]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Flattening?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Flattening refers to the process of converting a multidimensional array (an array that contains other arrays) into a single-dimensional array. This means taking all the nested elements and bringing them up one level in the hierarchy.&lt;/p&gt;

&lt;p&gt;For example, if you have the following array:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;const nestedArray = [1, 2, [3, 4, [5, 6]]];&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Flattening this array would result in:&lt;/p&gt;

&lt;p&gt;const flatArray = [1, 2, 3, 4, 5, 6];&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Array Methods in JavaScript</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Mon, 22 Jun 2026 06:08:00 +0000</pubDate>
      <link>https://dev.to/karthick_07/array-methods-in-javascript-2lib</link>
      <guid>https://dev.to/karthick_07/array-methods-in-javascript-2lib</guid>
      <description>&lt;p&gt;*&lt;em&gt;JavaScript Array  Important Method *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;To help you perform common tasks efficiently, JavaScript provides a wide variety of array methods. These methods allow you to add, remove, find, and transform array elements with ease.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd0dv5t8t34agzhufue0m.webp" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd0dv5t8t34agzhufue0m.webp" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript Array length&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;The length property of an array returns the number of elements in the array. It automatically updates as elements are added or removed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let a = ["HTML", "CSS", "JS", "React"];&lt;br&gt;
console.log(a.length);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript Array toString() Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The toString() method converts the given value into a string with each element separated by commas.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let a  = ["HTML", "CSS", "JS", "React"];&lt;br&gt;
let s = a.toString();&lt;br&gt;
console.log(s);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript Array join() Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This join() method creates and returns a new string by concatenating all elements of an array. It uses a specified separator between each element in the resulting string.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let a = ["HTML", "CSS", "JS", "React"];&lt;br&gt;
console.log(a.join('|'));&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript Array.push() Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The push() method is used to add an element at the end of an Array. As arrays in JavaScript are mutable objects, we can easily add or remove elements from the Array.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let a = [10, 20, 30, 40, 50];&lt;br&gt;
a.push(60);&lt;br&gt;
a.push(70, 80, 90);&lt;br&gt;
console.log(a);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript Array.pop() Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The pop() method is used to remove elements from the end of an array. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;let a = [20, 30, 40, 50];&lt;br&gt;
a.pop();&lt;br&gt;
console.log(a);&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript Array.shift() Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;shift() is a built-in JavaScript function that removes the first element from an array. The shift() function directly modifies the JavaScript array with which you are working. shift() returns the item you have removed from the array.&lt;/p&gt;

&lt;p&gt;The shift() function removes the item at index position 0 and shifts the values at future index numbers down by one.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;array.shift();&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;const array1 = [1, 2, 3];&lt;/p&gt;

&lt;p&gt;const firstElement = array1.shift();&lt;/p&gt;

&lt;p&gt;console.log(array1);&lt;br&gt;
// expected output: Array [2, 3]&lt;/p&gt;

&lt;p&gt;console.log(firstElement);&lt;br&gt;
// expected output: 1`&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript Array map() Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The map() method creates an array by calling a specific function on each element present in the parent array. It is a non-mutating method.&lt;/p&gt;

&lt;p&gt;`let a = [4, 9, 16, 25];&lt;br&gt;
let sub = a.map(geeks);&lt;/p&gt;

&lt;p&gt;function geeks() {&lt;br&gt;
    return a.map(Math.sqrt);&lt;br&gt;
}&lt;br&gt;
console.log(sub);`&lt;/p&gt;




&lt;p&gt;What is the output of the following code?&lt;/p&gt;

&lt;p&gt;let a = ["HTML", "CSS", "JS", "React"];&lt;/p&gt;

&lt;p&gt;console.log(a.length);&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tell me Answer===&amp;gt;Command me&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Solving Problems</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Sun, 21 Jun 2026 14:40:56 +0000</pubDate>
      <link>https://dev.to/karthick_07/solving-problems-20o4</link>
      <guid>https://dev.to/karthick_07/solving-problems-20o4</guid>
      <description>&lt;h1&gt;
  
  
  Bouncing Back: Solving Problems, Writing Functions, and Pushing to GitLab
&lt;/h1&gt;

&lt;p&gt;We all have days where life gets busy and we miss our study routine. After taking a short two-day break from my classes, I knew the most important thing was to just get back to the keyboard today. &lt;/p&gt;

&lt;p&gt;Consistency isn't about being perfect every single day; it’s about starting again. Today, I broke the pause, dove back into my logic, and got things done!&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Worked On Today
&lt;/h2&gt;

&lt;p&gt;Instead of just reading theory, I focused heavily on hands-on practice. Here is what I covered during my session:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Problem Solving:&lt;/strong&gt; I tackled logic problems to sharpen my analytical thinking and get back into the coding mindset.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Functions:&lt;/strong&gt; I practised writing reusable blocks of code, focusing on how data goes into a function and how it returns a result.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git &amp;amp; GitLab:&lt;/strong&gt; Once my code worked locally, I staged my changes, committed them, and pushed everything up to GitLab to save my progress.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  My GitLab Workflow
&lt;/h2&gt;

&lt;p&gt;If you are learning version control, successfully running your Git commands feels like a massive win. Here is the exact sequence I used today to keep my cloud repository updated:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;git status&lt;/code&gt; — To check which files I changed.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git add .&lt;/code&gt; — To stage my new code changes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git commit -m "Add solved problems and function practice"&lt;/code&gt; — To save a snapshot of my work.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git push origin main&lt;/code&gt; — To send it safely up to GitLab.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key Takeaway:&lt;/strong&gt; Pushing your work to GitLab or GitHub is just as important as writing the code itself. It builds great professional habits and keeps your project safe!&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;It felt incredible to solve code logic and see that successful push message in my terminal today. Taking a break happens to everyone, but the comeback is what matters. &lt;/p&gt;

&lt;p&gt;If you are on a learning journey too, don't worry if you miss a day or two. Just open your editor today and write that next function! &lt;/p&gt;

&lt;p&gt;What did you build or practice today? Let me know in the comments!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Mastering JavaScript Arrays: Techniques and Best Practices</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Fri, 19 Jun 2026 06:27:08 +0000</pubDate>
      <link>https://dev.to/karthick_07/mastering-javascript-arrays-techniques-and-best-practices-287e</link>
      <guid>https://dev.to/karthick_07/mastering-javascript-arrays-techniques-and-best-practices-287e</guid>
      <description>&lt;p&gt;&lt;strong&gt;JavaScript Arrays&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Introduction to JavaScript arrays&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In JavaScript, an array is an ordered list of values. Each value is called an element specified by an index:&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fam9xy535v952xrmzj19v.webp" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fam9xy535v952xrmzj19v.webp" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In JavaScript, an array is an ordered list of values. Each value is called an element specified by an index:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let car1 = "Saab";&lt;br&gt;
let car2 = "Volvo";&lt;br&gt;
let car3 ="BMW";&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Declaration&lt;br&gt;
There are two syntaxes for creating an empty array:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let arr = new Array();&lt;br&gt;
let arr = [];&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;`let fruits = ["Apple", "Orange", "Plum"];&lt;/p&gt;

&lt;p&gt;alert( fruits[0] ); // Apple&lt;br&gt;
alert( fruits[1] ); // Orange&lt;br&gt;
alert( fruits[2] ); // Plum`&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In JavaScript, arrays aren't primitives but are instead Array objects with the following core characteristics:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;JavaScript arrays are resizable and can contain a mix of different data types. (When those characteristics are undesirable, use typed arrays instead.)&lt;/p&gt;

&lt;p&gt;JavaScript arrays are not associative arrays, and so, array elements cannot be accessed using arbitrary strings as indexes, but must be accessed using nonnegative integers (or their respective string form) as indexes.&lt;/p&gt;

&lt;p&gt;JavaScript arrays are zero-indexed: the first element of an array is at index 0, the second is at index 1, and so on, and the last element is at the value of the array's length property minus 1.&lt;/p&gt;

&lt;p&gt;JavaScript array-copy operations create shallow copies. (All standard built-in copy operations with any JavaScript objects create shallow copies, rather than deep copies.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Day 1 of Mastering Logic: Cracking 16 Essential Looping Problems</title>
      <dc:creator>Karthick (k)</dc:creator>
      <pubDate>Thu, 18 Jun 2026 16:13:04 +0000</pubDate>
      <link>https://dev.to/karthick_07/day-1-of-mastering-logic-cracking-16-essential-looping-problems-2l8o</link>
      <guid>https://dev.to/karthick_07/day-1-of-mastering-logic-cracking-16-essential-looping-problems-2l8o</guid>
      <description>&lt;p&gt;description: Today, my friend and I teamed up to tackle 16 fundamental looping and number-theory problems in JavaScript. Here is our Day 1 roadmap!&lt;/p&gt;

&lt;h2&gt;
  
  
  tags: JavaScript, programming, logic, learning
&lt;/h2&gt;

&lt;h2&gt;
  
  
  🚀 The Journey Begins: Day 1 of Looping &amp;amp; Logic
&lt;/h2&gt;

&lt;p&gt;Today was an intense and highly productive day! My friend and I teamed up to push our programming logic to the next level. We decided to stop just reading code and start &lt;em&gt;building&lt;/em&gt; logic from scratch. &lt;/p&gt;

&lt;p&gt;We set a goal to complete &lt;strong&gt;16 foundational looping and number-theory programs&lt;/strong&gt; in Python. Working together made debugging faster and keeping each other accountable so much easier.&lt;/p&gt;

&lt;p&gt;Since we spent all our energy crushing the logic, I’m keeping this blog brief, but I wanted to share the exact problem set we conquered today. If you are a beginner looking to build strong analytical skills, try solving these!&lt;/p&gt;




&lt;h2&gt;
  
  
  📋 The Day 1 Challenge List
&lt;/h2&gt;

&lt;p&gt;We broke our challenges into two major categories: &lt;strong&gt;Pattern &amp;amp; Sequence Generation&lt;/strong&gt;, and &lt;strong&gt;Number Properties &amp;amp; Theory&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Part 1: Sequence &amp;amp; Series Generation
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Constant Series:&lt;/strong&gt; Print &lt;code&gt;1  1  1  1  1&lt;/code&gt; using a loop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linear Series:&lt;/strong&gt; Print consecutive numbers &lt;code&gt;1  2  3  4  5&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Odd Numbers:&lt;/strong&gt; Print the first five odd numbers &lt;code&gt;1  3  5  7  9&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multiples of 3:&lt;/strong&gt; Print the sequence &lt;code&gt;3  6  9  12  15&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Part 2: Number Theory &amp;amp; Divisibility
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Common Multiples (AND):&lt;/strong&gt; Find and print numbers that are multiples of &lt;strong&gt;both&lt;/strong&gt; 3 and 5.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Combined Multiples (OR):&lt;/strong&gt; Find and print numbers that are multiples of &lt;strong&gt;either&lt;/strong&gt; 3 or 5.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Divisors Finder:&lt;/strong&gt; Find all the mathematical divisors of a given number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count Divisors:&lt;/strong&gt; Calculate the total &lt;em&gt;number&lt;/em&gt; of divisors for a specific input.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prime Number Check:&lt;/strong&gt; Determine if a given number is prime (only divisible by 1 and itself).&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Part 3: Digit Manipulation &amp;amp; Special Numbers
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Reverse Printing:&lt;/strong&gt; Take a number and print its digits in reverse order dynamically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count Digits:&lt;/strong&gt; Count how many total digits are in a given number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sum of Digits:&lt;/strong&gt; Extract and sum all individual digits of a number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reverse the Number:&lt;/strong&gt; Mathematically reverse an integer (e.g., turning &lt;code&gt;123&lt;/code&gt; into &lt;code&gt;321&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Palindrome Number:&lt;/strong&gt; Check if a number reads the same backward as forward (like &lt;code&gt;121&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Armstrong Number:&lt;/strong&gt; Verify if the sum of its digits raised to the power of the number of digits equals the original number (e.g., $153 = 1^3 + 5^3 + 3^3$).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Neon Number:&lt;/strong&gt; Check if the sum of the digits of its square equals the original number (e.g., $9^2 = 81$, and $8 + 1 = 9$).&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  💡 Key Takeaways from Today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Two Brains Are Better Than One:&lt;/strong&gt; Group studying helped us catch edge cases (like handling &lt;code&gt;0&lt;/code&gt; or negative numbers in digit extraction) much faster.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Power of Modulo (&lt;code&gt;%&lt;/code&gt;):&lt;/strong&gt; Whether it's finding divisors, checking primes, or stripping digits one by one, the &lt;code&gt;%&lt;/code&gt; operator is an absolute king when working with loops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Building a Foundation:&lt;/strong&gt; Special numbers like Armstrong and Neon seemed tricky at first, but once you master &lt;strong&gt;Digit Extraction&lt;/strong&gt; (using &lt;code&gt;% 10&lt;/code&gt; and &lt;code&gt;// 10&lt;/code&gt;), they become simple variations of the same core logic.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  💬 Let's Connect!
&lt;/h2&gt;

&lt;p&gt;Have you solved these problems before? What was the hardest special number logic for you to crack when you started? Drop your thoughts in the comments! &lt;/p&gt;

&lt;p&gt;Thank you---&lt;/p&gt;

</description>
      <category>backend</category>
      <category>looping</category>
      <category>problems</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
