codewithsarir

codewithsarir

Share

Hi, Our page is related to web development with a focus on HTML, CSS, JavaScript, and ReactJS

Photos from codewithsarir 's post 27/05/2026

The Ultimate Modern DOM Manipulation Cheat Sheet 🚀💻

Let's be honest: your web apps are only as good as their user interactivity. If your DOM manipulation code feels messy or outdated, it's time for an upgrade.
​I designed this clean visual guide to streamline how you access elements, modify states, and handle user events under the hood.
​👉 Swipe through to fix your workflow:
1️⃣ Master the fast, efficient Selector API.
2️⃣ Update text and styles instantly without breaking your layout layout.
3️⃣ Attach scalable event listeners dynamically.
4️⃣ See exactly how a unified script brings a UI component to life.
​Save this carousel for your next build, and tag a developer friend who is currently building a vanilla JS or React portfolio! 🖥️✨
​Hashtags:

Photos from codewithsarir 's post 25/05/2026

How do clients and servers actually connect? The TCP Handshake Explained! 💻

Every time you load a webpage or fetch data from an API, a hidden "conversation" happens first. It's called the TCP 3-Way Handshake!
​If you are studying computer science or building full-stack applications, understanding this foundational networking process is key. I put together this quick visual guide to make the concept easy to digest.
​👉 Swipe through to see the exact flow:
1️⃣ The initial SYN request to start the connection.
2️⃣ The server's SYN-ACK response to confirm and sync back.
3️⃣ The final ACK to finalize the reliable link so data transfer can begin.
​Save this carousel to review before your next networking exam or technical interview, and share it with your study group! ✨
​Hashtags:

Photos from codewithsarir 's post 23/05/2026

Crack the Code of the JavaScript Event Loop! 🧩

Ever wonder how JavaScript can be single-threaded but still run multiple asynchronous tasks simultaneously? It’s all about the Event Loop!
​If you are prepping for technical interviews or want to finally grasp how JS handles concurrency, I designed this quick visual guide to map out the exact flow.
​👉 Swipe through to explore:
1️⃣ The Call Stack & LIFO ex*****on order.
2️⃣ How we offload blocking tasks to Web APIs.
3️⃣ The critical difference between the Micro-Task (Promises) and Macro-Task (Timers) queues.
4️⃣ The complete Event Loop cycle in action!
​Save this carousel for your next study session, and share it with a fellow developer who needs a visual breakdown of how JS actually works under the hood! 💻✨
​Hashtags:

Photos from codewithsarir 's post 19/05/2026

How does a browser actually load a webpage? 🚀💻

We build web apps every day, but how often do we step back and look at the actual journey of a web request?
​If you are prepping for technical interviews or just want to solidify your understanding of how the web works, I’ve put together this quick visual guide.
​👉 Swipe through to trace the exact steps:
1️⃣ Find the IP: How DNS servers route your request.
2️⃣ Establish the Link: The crucial TCP three-way handshake.
3️⃣ Exchange Data: Sending and receiving the HTTP payloads.
4️⃣ Display the Page: Parsing HTML/CSS into the render tree.
​Save this carousel for your next study session, and share it with a fellow developer who loves a good behind-the-scenes look at web architecture! ✨
​Hashtags:

Photos from codewithsarir 's post 17/05/2026

Master JavaScript Promises with this Quick Visual Guide! 💡

Still getting tangled in callback hell or confused by asynchronous JavaScript?
​A Promise is simply an object representing the eventual completion (or failure) of an async operation. I created this carousel to visually break down exactly how they work under the hood.
​👉 Swipe through to learn:
1️⃣ How a Promise moves from Pending to Resolved/Rejected.
2️⃣ How to sequentially process data using .then().
3️⃣ How to centralize your error handling with .catch().
4️⃣ How this all sets the stage for modern async/await.
​Save this post for your next coding session, and share it with a fellow developer who might find it helpful! 💻✨
​Hashtags:

16/05/2026

The Hoisting Mystery: Can you solve this JavaScript puzzle?

Time for another brain teaser! 🧠
​Take a look at the code above. We are trying to log two variables before they are even assigned a value. One behaves "nicely" while the other causes a headache! 🤕
​The Question: What will be the exact output of lines 1 and 2?
(A) undefined and undefined
(B) undefined and ReferenceError
(C) 5 and 10
(D) ReferenceError and ReferenceError
​Hint: One variable is "initialized," but the other is stuck in the "Dead Zone"! 🕵️‍♂️ Comment your answer below! 👇💻
​Hashtags:

14/05/2026

JavaScript Quiz: Can you solve the Shallow Copy Trap?


Time for a brain teaser! 🧠
​Look at the code in 1000194630.png. We create a "clone" of an object, change the name, and add a new skill to the list.
​The Big Question: What will original.name and original.skills.length be?
(A) 'Adam' and 3
(B) 'Sarir' and 2
(C) 'Sarir' and 3
(D) 'Adam' and 2
​Hint: One property was copied by value, the other was copied by reference! 🕵️‍♂️
​Comment your answer below and let's see who nails the explanation! 👇💻
​Hashtags:

12/05/2026

Quiz Time: Can you solve the "Equality of Nothing"?

Time for a quick brain teaser! 🧠
​Take a look at the code above. We are comparing null and undefined using two different operators. One looks for a general match, while the other looks for a perfect match. 💻
​The Question: What is the exact output?
(A) true true
(B) false false
(C) true false
(D) An error
​Hint: Think about how JavaScript handles types during a comparison! 🕵️‍♂️ Comment your answer below and let's see who gets it right! 👇💻
​Hashtags:

10/05/2026

JavaScript Challenge: Can you solve The Return Trap?

Time for a quick brain teaser! 🧠
​Take a look at the getProfile function in the image. It looks like it should return the object, right? But in the world of JavaScript, whitespace matters more than you might realize!
​The Question: What is the exact output of the console log?
(A) { name: 'Sarir', role: 'MERN Stack' }
(B) undefined
(C) SyntaxError
(D) null
​Hint: Look at the gap between return and the opening bracket! 🕵️‍♂️ Comment your answer below and let's see who nails it! 👇💻
​Hashtags:

04/05/2026

The Duplicate Case: Can you solve this JavaScript mystery?
: Time for a quick brain teaser! 🧠
​Take a look at the person object. We’ve assigned a value to the 'id' three different times. But when we log person.id, only one of those numbers will actually appear in the console. 💻
​The Question: What is the exact output?
(A) 101
(B) 102
(C) 103
(D) An Error
​Hint: In a race for the same key, think about who crosses the finish line last! 🏎️ Comment your answer below and let's see who nails it! 👇💻
​Hashtags:

01/05/2026

The Mapping Trap: Test your JavaScript Logic!

Time for a quick brain teaser! 🧠
​Take a look at the code above. It looks like a simple conversion from strings to numbers, but JavaScript has a "Mapping Trap" waiting for you.
​The Question: What is the exact output of console.log(result)?
(A) [1, 7, 11]
(B) [1, NaN, 3]
(C) [1, NaN, 11]
(D) An Error
​Hint: Think about what map passes as the second argument to parseInt! 🕵️‍♂️ Comment your answer below and let's see who gets it right! 👇💻
​Hashtags:

Want your school to be the top-listed School/college in Gilgit?
Click here to claim your Sponsored Listing.

Telephone

Address

Rehman Colony Naveed Shaheed Road Sonikot Gilgit
Gilgit
1500