Web development
Kanalga Telegram’da o‘tish
Web development learning path Frontend and backend resources. HTML, CSS, JavaScript, React, APIs and project ideas. Join 👉 https://rebrand.ly/bigdatachannels DMCA: @disclosure_bds Contact: @mldatascientist
Ko'proq ko'rsatish4 161
Obunachilar
+124 soatlar
+157 kunlar
+3930 kunlar
Postlar arxiv
4 162
preventDefault() vs stopPropagation() vs stopImmediatePropagation()
When to Use What:
📌preventDefault(): When you want to handle the action yourself
📌 stopPropagation(): When parent elements shouldn't react
📌 stopImmediatePropagation(): Nuclear option for plugin conflicts
90% of the time, you only need preventDefault().
4 162
🧩 JavaScript Quiz
Which method is used to add an element to the end of an array?
4 162
JavaScript Event Loop: The Truth About setTimeout(0)
The Real Order of Operations:
1. Call Stack: Synchronous code (A, D) - This is where JavaScript executes code sequentially, like reading a script.
2. Microtasks: Promises (C) - These are small tasks that need to be executed ASAP after the current script, before the next rendering. Think of them as urgent side tasks.
3. Macrotasks: Timeouts/Intervals (B) - These are longer tasks that the browser queues up to do whenever it gets a chance. They're not as urgent as microtasks.
Golden Rule: "0ms" doesn't mean immediate - it means "next event loop tick".
4 162
localStorage Persistence: The Silent Bank Vault
What’s happening?
localStorage is like a browser’s hard drive. It survives tab/window closures, even system reboots.
Unlike sessionStorage (which dies with the tab), localStorage sticks until explicitly cleared (localStorage.clear() or user clears browsing data).
Gotcha: It’s synchronous meaning it blocks the main thread if you store large data.
4 162
🧩 JavaScript Quiz
In JavaScript, which keyword is used to declare a variable that cannot be reassigned after its initial value is set?
Endi mavjud! Telegram Tadqiqoti 2025 — yilning asosiy insaytlari 
