Back

Suyash Patil

Frontend Engineer • 29d

One interesting thing to look into when it comes to the 𝗲𝘃𝗲𝗻𝘁 𝗹𝗼𝗼𝗽 is how JavaScript handles macrotasks and microtasks. 𝗠𝗮𝗰𝗿𝗼𝘁𝗮𝘀𝗸𝘀: Macrotasks are typically large, high-level operations like setTimeout, setInterval, and user interactions (e.g., click, scroll). 𝗠𝗶𝗰𝗿𝗼𝘁𝗮𝘀𝗸𝘀: Microtasks, often created by Promises or queueMicrotask, are lightweight tasks that are always processed after the current execution context but before any rendering or macrotasks. Microtasks are executed immediately after the current script and before any rendering, making them a reliable way to ensure certain tasks (like promises) are handled promptly. Macrotasks are handled in a “first come, first served” manner, which includes things like timers and I/O events.

0 replies11 likes
1

More like this

Recommendations from Medial

Image Description

Haran Naresh K

Developer in trainin... • 6m

Harnessing GPU Power with CUDA CUDA (Compute Unified Device Architecture) is a parallel computing platform by Nvidia that unleashes the power of GPUs for more than just graphics rendering. Initially developed in 2007, CUDA enables massive parallel p

See More
1 replies4 likes

Jatin Ahirwar

Full Stack Developer • 8m

🗂️Day 27 of the 30-day Question Mania challenge with Hitesh Choudhary Sir! Today, I focused on building a Task Management App, a project that honed my skills in creating interactive and user-friendly applications. Here’s what I achieved: 🔹 Pro

See More
0 replies1 like
Image Description
Image Description

Prem Siddhapura

Unicorn is coming so... • 4m

Making money as a beginner often requires creativity, persistence, and identifying opportunities that match your skills and interests. Here are some practical ideas: 1. Freelancing Offer services in writing, graphic design, social media management,

See More
3 replies6 likes
Image Description
Image Description

Suman Meghwal

Wealthseeker • 2m

Ravi, 32, was seated at his desk, feeling pressured by a challenging deadline. As the stress increased, he sensed his anxiety grow, thinking, “I won’t be able to complete it on time.” His thoughts sped with negativity, rendering the task seem unachie

See More
9 replies2 likes

SAI DEVA HARSHA

AI PROMPT ENGINEER ... • 5d

The Impact of Trump's Tariffs, Job Layoffs, and the Role of AI in the Workforce In 2018, Trump's tariffs aimed to protect U.S. jobs but instead led to job layoffs, higher production costs, and disrupted global supply chains. Industries like manufactu

See More
0 replies10 likes
Image Description

Applyly

Hey I am on Medial • 4m

Mili raises $2 million in funding Mili, a pioneering AI meeting assistant platform, has made significant waves recently. The startup has successfully raised $2 million in seed funding round. Chiratae Ventures and BoldCap led this impressive investme

See More
1 replies3 likes
Image Description

TREND talks

History always repea... • 3m

🔥 Important Notes Part — 4 🔥 👨‍💻 Top 45 Valuable Business lessons 🇮🇳 1. Know your market: Understand customer needs and behavior. 2. Prioritize value creation: Offer solutions that genuinely help customers. 3. Be adaptable: Stay flexible

See More
1 replies25 likes
25

Download the medial app to read full posts, comements and news.