home
search
help
profile
liking the experience? our app is even better
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now  
showing results for javascript timing
1var output = "";
2
3// Start timing now
4console.time("concatenation");
5
6for (var i = 1; i <= 1e6; i++) {
7  output += i;
8}
9
10// ... and stop.
11console.timeEnd("concatenation");
12
upvote
downvote
source