Skip to content

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

Notifications You must be signed in to change notification settings

angel-christian/prompt-based-todo-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—‚๏ธ To-Do List App (Prompt-Based)

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

Live Demo at : https://angel-christian.github.io/prompt-based-todo-list/

๐Ÿ“Œ Features

  • Interactive prompt-based interface
  • Tasks stored in an array
  • Real-time updates with every command
  • Basic error handling for invalid inputs

๐Ÿง  Concepts Used

  • Arrays and push() / splice() methods
  • Loops (while, for)
  • Conditionals (if-else)
  • String comparisons and user input handling

๐Ÿ› ๏ธ How to Run

  1. Open index.html in a web browser.
  2. Press F12 to open the Console tab.
  3. 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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published