Exercise 1: Gathering All Promises
Explore how to handle asynchronous JavaScript operations when processing large inputs by implementing a timeout mechanism. Learn to modify promise-based functions to reject after one second if execution takes too long, improving program reliability and control.
We'll cover the following...
We'll cover the following...
Problem statement
In the Gathering All Promises lesson, the numbers.txt file had a few small numbers.
The input file numbers.txt is changed to hold the values 100000 and ...