<?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: sivasankarimuthu</title>
    <description>The latest articles on DEV Community by sivasankarimuthu (@sivasankarimuthu26create).</description>
    <link>https://dev.to/sivasankarimuthu26create</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%2F4114776%2Fc0e8e64c-e8a1-4dbd-bc5e-b42f7893b671.png</url>
      <title>DEV Community: sivasankarimuthu</title>
      <link>https://dev.to/sivasankarimuthu26create</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sivasankarimuthu26create"/>
    <language>en</language>
    <item>
      <title>5 Common JavaScript Mistakes Beginners Make (And How to Fix Them)</title>
      <dc:creator>sivasankarimuthu</dc:creator>
      <pubDate>Thu, 10 Sep 2026 12:12:48 +0000</pubDate>
      <link>https://dev.to/sivasankarimuthu26create/5-common-javascript-mistakes-beginners-make-and-how-to-fix-them-56j1</link>
      <guid>https://dev.to/sivasankarimuthu26create/5-common-javascript-mistakes-beginners-make-and-how-to-fix-them-56j1</guid>
      <description>&lt;h2&gt;
  
  
  5 Common JavaScript Mistakes
&lt;/h2&gt;

&lt;p&gt;JavaScript is one of the easiest languages to start with, but it also has a few tricky parts that trip up beginners. Here are 5 common mistakes and how to avoid them.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Using &lt;code&gt;==&lt;/code&gt; Instead of &lt;code&gt;===&lt;/code&gt;:
&lt;/h2&gt;

&lt;p&gt;Many beginners use &lt;code&gt;==&lt;/code&gt;to compare values, but this can cause unexpected bugs because &lt;code&gt;==&lt;/code&gt; converts types before comparing, while &lt;code&gt;===&lt;/code&gt; checks both value and type.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example:
&lt;/h2&gt;

&lt;p&gt;console.log(0 == "0");   // true (bad — different types treated as equal)&lt;br&gt;
console.log(0 === "0");  // false (correct — strict comparison)&lt;/p&gt;

&lt;h2&gt;
  
  
  2.Confusing var, let, and const:
&lt;/h2&gt;

&lt;p&gt;Beginners often use var everywhere out of habit, without realizing it behaves differently from &lt;code&gt;let&lt;/code&gt; and &lt;code&gt;const&lt;/code&gt;. &lt;code&gt;var&lt;/code&gt; is function-scoped and can be redeclared, which often leads to bugs in loops and conditionals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example:
&lt;/h2&gt;

&lt;p&gt;var x = 10;&lt;br&gt;
var x = 20; // no error, silently overwritten&lt;/p&gt;

&lt;p&gt;let y = 10;&lt;br&gt;
let y = 20; // Error: cannot redeclare&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Misusing async/await and Promises:
&lt;/h2&gt;

&lt;p&gt;A common mistake is forgetting to use &lt;code&gt;await&lt;/code&gt;, which causes your code to run before the data actually arrives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example:
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;Wrong method:&lt;/code&gt;&lt;br&gt;
function getData() {&lt;br&gt;
  const data = fetch("/api/data"); // missing await&lt;br&gt;
  console.log(data); // logs a Promise, not the actual data&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Correct method:&lt;/code&gt;&lt;br&gt;
async function getData() {&lt;br&gt;
  const data = await fetch("/api/data");&lt;br&gt;
  const result = await data.json();&lt;br&gt;
  console.log(result);&lt;br&gt;
}&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Not Understanding Hoisting:
&lt;/h2&gt;

&lt;p&gt;Beginners are often confused when a variable seems to exist before it's even declared. This happens because of hoisting — JavaScript moves variable and function declarations to the top of their scope before running the code.   &lt;/p&gt;

&lt;h2&gt;
  
  
  Example:
&lt;/h2&gt;

&lt;p&gt;console.log(a); // undefined (not an error!)&lt;br&gt;
var a = 5;&lt;/p&gt;

&lt;p&gt;console.log(b); // Error: Cannot access 'b' before initialization&lt;br&gt;
let b = 5;&lt;/p&gt;

&lt;p&gt;console.log(a); // undefined (not an error!)&lt;br&gt;
var a = 5;&lt;/p&gt;

&lt;p&gt;console.log(b); // Error: Cannot access 'b' before initialization&lt;br&gt;
let b = 5;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Accidentally Mutating Arrays and Objects:
&lt;/h2&gt;

&lt;p&gt;Beginners often modify arrays or objects directly, not realizing that in JavaScript, objects and arrays are copied by reference, not by value. This means changing a "copy" can accidentally change the original.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example:
&lt;/h2&gt;

&lt;p&gt;const original = [1, 2, 3];&lt;br&gt;
const copy = original; // NOT a real copy — same reference&lt;br&gt;
copy.push(4);&lt;/p&gt;

&lt;p&gt;console.log(original); // [1, 2, 3, 4] — original got changed too!&lt;/p&gt;

&lt;p&gt;To make a real copy, use the spread operator or array/object methods:&lt;/p&gt;

&lt;p&gt;const properCopy = [...original]; // real copy&lt;br&gt;
properCopy.push(5);&lt;/p&gt;

&lt;p&gt;console.log(original);   // [1, 2, 3, 4] — unaffected&lt;br&gt;
console.log(properCopy); // [1, 2, 3, 4, 5]&lt;/p&gt;

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

&lt;p&gt;These 5 mistakes are extremely common when learning JavaScript, but once you understand why they happen, they're easy to avoid. Practicing with small examples like these will make your code more reliable and bug-free.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>What is an API? (Explained Simply)</title>
      <dc:creator>sivasankarimuthu</dc:creator>
      <pubDate>Tue, 08 Sep 2026 08:16:41 +0000</pubDate>
      <link>https://dev.to/sivasankarimuthu26create/what-is-an-api-explained-simply-62e</link>
      <guid>https://dev.to/sivasankarimuthu26create/what-is-an-api-explained-simply-62e</guid>
      <description>&lt;p&gt;What is an API?&lt;/p&gt;

&lt;p&gt;If you've ever used a weather app, ordered food online, or logged in with your Google account, you've already used an API — without even knowing it. Let's break down what an API actually is, in plain and simple words.&lt;/p&gt;

&lt;p&gt;API = A Messenger Between Two Apps&lt;/p&gt;

&lt;p&gt;API stands for Application Programming Interface. Think of it as a waiter in a restaurant.&lt;/p&gt;

&lt;p&gt;You (the customer) don't go into the kitchen yourself.&lt;br&gt;
You tell the waiter what you want.&lt;br&gt;
The waiter takes your order to the kitchen, gets the food, and brings it back to you.&lt;/p&gt;

&lt;p&gt;In technology, the API is that "waiter" — it takes a request from one app, sends it to another system, and brings back the response.&lt;/p&gt;

&lt;p&gt;A Real Example&lt;/p&gt;

&lt;p&gt;Let's say you're using a weather app on your phone:&lt;/p&gt;

&lt;p&gt;You open the app and search "Chennai weather."&lt;br&gt;
The app sends a request to a weather API (like a request to the "kitchen").&lt;br&gt;
The API fetches the latest weather data from a server.&lt;br&gt;
The API sends that data back to your app.&lt;br&gt;
You see the temperature and forecast on your screen.&lt;/p&gt;

&lt;p&gt;You never see this happening — but it happens in seconds, every time you check the weather.&lt;/p&gt;

&lt;p&gt;Why APIs Matter&lt;/p&gt;

&lt;p&gt;APIs let different apps and services "talk" to each other without needing to know how the other one works internally. This is why:&lt;/p&gt;

&lt;p&gt;Websites can show Google Maps without building their own map system&lt;br&gt;
Apps can let you "Login with Google" without storing your Google password&lt;br&gt;
Online stores can accept payments through Razorpay/PayPal without building their own payment system&lt;br&gt;
A Simple Code Example&lt;/p&gt;

&lt;p&gt;Here's what calling a real API looks like in JavaScript:&lt;/p&gt;

&lt;p&gt;js&lt;br&gt;
fetch("&lt;a href="https://api.weather.com/chennai%22" rel="noopener noreferrer"&gt;https://api.weather.com/chennai"&lt;/a&gt;)&lt;br&gt;
  .then(response =&amp;gt; response.json())&lt;br&gt;
  .then(data =&amp;gt; console.log(data.temperature));&lt;/p&gt;

&lt;p&gt;This code sends a request to a weather API and prints the temperature it gets back — just like the waiter bringing your food.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;APIs are everywhere in the apps we use daily, working silently in the background. Once you understand that an API is simply a messenger connecting two systems, a lot of modern technology starts to make more sense.&lt;/p&gt;

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