This repo has my practice tasks for learning JavaScript DOM and async programming.
I’m still learning, so these are simple projects to help me understand the basics.
- A small to-do list where I can click a task to mark it as complete.
- Tasks start in gray. When I click one, it turns green and shows a check icon.
- Clicking again makes it incomplete.
- Built with HTML, CSS, and JavaScript.
How to try it:
Open tasks/todo-interactive/index.html in the browser.
- A function called
fetchDataWithCallbackthat waits 2 seconds, then either:- shows “Data fetched” (success), or
- shows “Error: Fetch failed” (error).
- Used
setTimeoutto simulate a delay. - Learned how to use callbacks and try/catch for errors.
How to try it: Run this in the terminal:
node tasks/callback-assignment/fetchDataCallback.js