<?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: Muhammad Mubashir</title>
    <description>The latest articles on DEV Community by Muhammad Mubashir (@mubashircodes).</description>
    <link>https://dev.to/mubashircodes</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%2F2626209%2Fdd1d998b-c579-4fdd-9ea6-8403401d5378.jpg</url>
      <title>DEV Community: Muhammad Mubashir</title>
      <link>https://dev.to/mubashircodes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mubashircodes"/>
    <language>en</language>
    <item>
      <title>JavaScript is weird!</title>
      <dc:creator>Muhammad Mubashir</dc:creator>
      <pubDate>Sat, 24 Jan 2026 17:05:35 +0000</pubDate>
      <link>https://dev.to/mubashircodes/javascript-is-weird-2ihb</link>
      <guid>https://dev.to/mubashircodes/javascript-is-weird-2ihb</guid>
      <description>&lt;p&gt;JavaScript is the only language where your brain melts in seconds.&lt;/p&gt;

&lt;p&gt;So yesterday, I’m building some app, right? I’m checking types, doing calculations… and then I see this:&lt;/p&gt;

&lt;p&gt;console.log(typeof NaN); // "number"&lt;/p&gt;

&lt;p&gt;WTF JavaScript. NaN = Not a Number. Type = “number”? My brain just did a flip. How does this make sense?!&lt;/p&gt;

&lt;p&gt;Then I try something else:&lt;/p&gt;

&lt;p&gt;let a;&lt;br&gt;
console.log(a + 2); // NaN&lt;br&gt;
console.log(a);     // undefined&lt;/p&gt;

&lt;p&gt;Okay, so undefined + 2 = NaN. Makes sense… kinda. But typeof a is “undefined”. Sure, okay. But NaN is number? My brain just filed for early retirement.&lt;/p&gt;

&lt;p&gt;I spend the next 20 minutes testing stuff:&lt;/p&gt;

&lt;p&gt;console.log(null == undefined);  // true&lt;br&gt;
console.log(null === undefined); // false&lt;br&gt;
console.log([] + []);            // ""&lt;br&gt;
console.log([] + {});            // "[object Object]"&lt;br&gt;
console.log({} + []);            // 0 ????&lt;/p&gt;

&lt;p&gt;WHAT?! Why does JS do this to me? Why is [] + {} a string but {} + [] = 0???&lt;/p&gt;

&lt;p&gt;At this point, I unlocked a new mental badge:&lt;/p&gt;

&lt;p&gt;“JavaScript Survivor” — For staring at the console like it personally betrayed you.&lt;/p&gt;

&lt;p&gt;Seriously, JS is fun… until it isn’t. But you still love it, because no other language would let typeof(NaN) === "number" and let you survive it.&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.amazonaws.com%2Fuploads%2Farticles%2Fi2oydxb4luu3mvzqjx4d.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.amazonaws.com%2Fuploads%2Farticles%2Fi2oydxb4luu3mvzqjx4d.webp" alt=" " width="640" height="357"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>coding</category>
    </item>
    <item>
      <title>Hi 👋</title>
      <dc:creator>Muhammad Mubashir</dc:creator>
      <pubDate>Sat, 12 Jul 2025 00:36:29 +0000</pubDate>
      <link>https://dev.to/mubashircodes/hi-3dl1</link>
      <guid>https://dev.to/mubashircodes/hi-3dl1</guid>
      <description>&lt;p&gt;👋 Hey friends! I'm Muhammad Mubashir, a passionate Web Developer who turns ideas into interactive digital experiences. I’ve been diving into web technologies and bringing concepts to life through clean code and creative design. Here's a peek at some of my recent work:&lt;/p&gt;

&lt;p&gt;🌐 Cafe Delight – A modern, responsive cafe website built with HTML, CSS, and a touch of JavaScript to give visitors a deliciously smooth browsing experience.&lt;br&gt;
💬 Chat Corner – A real-time chat web app where users can connect and message seamlessly — built using Firebase and modern JavaScript magic.&lt;br&gt;
🌦️ Weather Vibe – A sleek weather app that gives you real-time weather updates with stylish UI and accurate location-based data.&lt;/p&gt;

&lt;p&gt;I’m constantly learning, building, and improving. Whether it's front-end design or back-end functionality — I love the whole process. 💻✨&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/ProgrammerMuhammadMubashir" rel="noopener noreferrer"&gt;https://github.com/ProgrammerMuhammadMubashir&lt;/a&gt;&lt;br&gt;
Portfolio Website:&lt;br&gt;
&lt;a href="https://programmermuhammadmubashir.github.io/MyPortfolio/" rel="noopener noreferrer"&gt;https://programmermuhammadmubashir.github.io/MyPortfolio/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s connect, collaborate, or just talk tech! 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  WebDeveloper #HTML #CSS #JavaScript #Projects #CodingLife #Frontend #Backend
&lt;/h1&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>ai</category>
    </item>
    <item>
      <title>👋 Hey friends! I'm Muhammad Mubashir, a passionate Web Developer who turns ideas into interactive digital experiences. GitHub: https://github.com/ProgrammerMuhammadMubashir</title>
      <dc:creator>Muhammad Mubashir</dc:creator>
      <pubDate>Sat, 12 Jul 2025 00:35:36 +0000</pubDate>
      <link>https://dev.to/mubashircodes/hey-friends-im-muhammad-mubashir-a-passionate-web-developer-who-turns-ideas-into-interactive-2beo</link>
      <guid>https://dev.to/mubashircodes/hey-friends-im-muhammad-mubashir-a-passionate-web-developer-who-turns-ideas-into-interactive-2beo</guid>
      <description></description>
      <category>webdev</category>
      <category>github</category>
      <category>developer</category>
      <category>career</category>
    </item>
    <item>
      <title>New to Community</title>
      <dc:creator>Muhammad Mubashir</dc:creator>
      <pubDate>Sat, 28 Dec 2024 15:43:38 +0000</pubDate>
      <link>https://dev.to/mubashircodes/new-to-community-1e50</link>
      <guid>https://dev.to/mubashircodes/new-to-community-1e50</guid>
      <description>

</description>
      <category>community</category>
    </item>
  </channel>
</rss>
