This is a simple JavaScript program that runs entirely in the browser console using prompt()
and console.log()
. It simulates a To-Do List, where users can:
- โ Add tasks
- ๐ View all tasks
- โ Remove tasks
- ๐ช Quit the program
Live Demo at : https://angel-christian.github.io/prompt-based-todo-list/
- Interactive prompt-based interface
- Tasks stored in an array
- Real-time updates with every command
- Basic error handling for invalid inputs
- Arrays and
push()
/splice()
methods - Loops (
while
,for
) - Conditionals (
if-else
) - String comparisons and user input handling
- Open
index.html
in a web browser. - Press
F12
to open the Console tab. - Interact with the prompt messages:
- Type
"Add"
to add a task - Type
"List"
to view all tasks - Type
"Remove"
to delete a task by its index - Type
"Quit"
to exit the loop
- Type