About this site
Add your existing website content here.
//---------------
2,000,000,000 (2 billion) --//
// NOTE: The loop below
actually stops at 200,000,000
(200 million).
// Estimated printing time:
seconds to hours, depending
on console
speed.
// At 1,000 numbers/second:
about 55 hours.
// At 10,000 numbers/second:
about 5.6 hours.
// The browser console may
freeze or become unresponsive.
let count = 1;
//---------------2,000,000,000--//
while (count <= 2000000000) {
console.log(count);
count++;
}
let count = 1
while (count <= 2000000000) {
console.log(count);
count = count + 1;
}
will lock the browser's js runtime
causes a hold or freeze
Welcome to the foxy side of the web!
Add your existing website content here.