I am a guy who lived and worked in the mobile apps marketing in China for the past 7 years. Since 2020 I decided to shift my career to become a Full Stack dev and joined to a remote full time bootcamp
Hi, this article is going to be very useful, thank you.
I do have a question though. I encountered this problem not a long time ago but I couldn't find an answer to it.
When I run this on the Chrome console:
it takes around 35 seconds to display on Chrome console the result which is around 5000 ms.
Does this mean that while the (V8?) takes 5 seconds to run the code, Chrome console is much slower to show the result of all iterations?
I am a guy who lived and worked in the mobile apps marketing in China for the past 7 years. Since 2020 I decided to shift my career to become a Full Stack dev and joined to a remote full time bootcamp
Hi, this article is going to be very useful, thank you.
I do have a question though. I encountered this problem not a long time ago but I couldn't find an answer to it.
When I run this on the Chrome console:
it takes around 35 seconds to display on Chrome console the result which is around 5000 ms.
Does this mean that while the (V8?) takes 5 seconds to run the code, Chrome console is much slower to show the result of all iterations?
Printing to the console is slow. Yes. Have you tried the same thing without a .log in the loop? Probably much much faster
Yep, just tried as you suggested and it turned out that an addition without console.log() is roughly 2500 times faster. I got it, thank you.
This isn’t specific to chrome