This folder contains assignments focused on asynchronous JavaScript.
You can follow the recommended order below or complete them in any sequence you prefer.
- Counter
- Counter (without
setInterval) - Read from a file
- Write to a file
- File Cleaner
- Clock
- Promisify
setTimeout - Sleep Completely
- Promise all
- Promise Chain
- Ensure you have Node.js installed.
- Clone or download this repository.
- Navigate to the respective assignment folder and execute the script using Node.js.
- Copy the assignment code to Replit.
- Execute the script in Replit's environment.
- Navigate to
/Javascript-Assignments/01-async-js. - Install dependencies using:
npm install
- Run specific tests with:
Example:
npm run <test-name>
npm run 1-promisify-setTimeout
- To execute all tests at once, run:
npm run all
- There are no automated tests.
- Manually run scripts using Node.js:
(Replace
node easy/1-counter.js
1-counter.jswith the relevant file name.) - Follow the same approach for medium problems.
For a walkthrough on navigating through the assignments, check out this demo video: