Calling all web development debugging detectives! 🕵️ Put your skills to the test and help us uncover what the error is in this code. for (var i = 0; i < 5; i++) { setTimeout(() => console.log(i), 1000); }
Chrome for Developers’ Post
More Relevant Posts
-
The secret to a smoother streaming experience? Reducing Interaction to Next Paint (INP). Discover how Disney+ Hotstar boosted user engagement for their app in this article by Saurabh Rajpal and Bhuvaneswaran Mohan: https://lnkd.in/gHzXr7Zt
To view or add a comment, sign in
-
Gain valuable insights into your web application with Chrome DevTools Console by directly asking Gemini to better understand errors and warnings.💡 Now available as an experimental feature in the U.S. which will roll out to more countries soon → https://goo.gle/4crvvvW
To view or add a comment, sign in
-
The third episode of the #WasmAssembly podcast is out now! Friendly reminder that we're also on YouTube: https://lnkd.in/gpTqCTQp
📢 The third episode of the #WasmAssembly podcast is out: The #WASI Revolution: Fastly's Luke Wagner on #WebAssembly's Past, Present, and Future. https://lnkd.in/deRcnVpR! 🎧
To view or add a comment, sign in
-
Hey Devs 👋 Lets play a game of this or that! You have to pick one, which one are you choosing? Luckily, we have new ways to create your frictionless developer workflow in this #GoogleIO session for your real life dev scenarios: https://goo.gle/3L3jmkP
To view or add a comment, sign in
-
-
ChromeOS just got some powerful upgrades. Discover all the new features and supercharge your skills: https://goo.gle/4ci8cUM
To view or add a comment, sign in
-
-
📣 Calling all Web fans! We hid 4 of our hottest new WebUI features in this word search. Can you crack the code? Swipe right to reveal your detective skills and head over to Una Kravets' #GoogleIO session for a deep dive on all the latest Web updates! ➡️ https://goo.gle/4cgy1EP
To view or add a comment, sign in
-
We all get advice when starting our careers as a developer, but what truly sticks? 🤔 Give back to the developer community and fill in the blank below ⬇️ The best piece of career advice I ever received was _________.
To view or add a comment, sign in
-
The next step for the View Transition API is here. ✨ Introducing cross-document view transitions that allow you to provide seamless user experiences without sacrificing performance. Check out our #GoogleIO session to learn more → https://goo.gle/4eiLYUm
To view or add a comment, sign in
-
Missed our #GoogleIO announcements earlier this month? No worries - we're here to help recap all the major launches, starting with WebGPU and WebAssembly. Take a look at how we improved speed and efficiency with 16-bit floating point values, Memory64, and more to make AI models run faster on a wider range of devices. Watch our IO session to learn about the latest advancements. https://goo.gle/4c4dow5
To view or add a comment, sign in
UXE (front end) Lead • Alumni of IIT BHU • Google Summer of Code Senior Mentor at Liquid Galaxy • Purveyor of impeccable UX at CybTEKK • Former Technical Advisor and Mentor of Frontend Team at Kashiyatra (IIT-BHU)
3dAssumption - I'm assuming what you're trying to achieve here is print the numbers from the 'for' loop in ascending order. Error in the code - The setTimeout inside the for loop will pop off the call stack after one second, but till then if it will reference the value of i, i will be 5, so we get 5 printed out 5 times. The solution - simply put the setTimeout outside setTimeout(()=> { for (var i= 0; i < 5; i++) console.log(i), 1000} ); And now, each time 'i' prints in the increasing order we assume as the output at the beginning.