feature complete
This commit is contained in:
10
todo.js
10
todo.js
@ -9,7 +9,7 @@ console.log("+----------------------------------------+");
|
||||
|
||||
let running = true;
|
||||
while (running) {
|
||||
let startQuestion = readline.question("wähle eine option\n1:Aufgabe hinzufügen:\n2:Aufgaben anzeigen\n3:Aufgabe löschen\nq:beenden\n");
|
||||
let startQuestion = readline.question("wähle eine Option:\n1:Aufgabe hinzufügen\n2:Aufgaben anzeigen\n3:Aufgabe abschließen\nq:beenden\n");
|
||||
startQuestion.trim();
|
||||
|
||||
switch (startQuestion) {
|
||||
@ -20,7 +20,7 @@ switch (startQuestion) {
|
||||
showTask();
|
||||
break;
|
||||
case "3":
|
||||
deleteTask();
|
||||
markTask();
|
||||
break;
|
||||
case"q":
|
||||
running = false;
|
||||
@ -55,3 +55,9 @@ function showTask() {
|
||||
|
||||
}
|
||||
|
||||
function markTask() {
|
||||
showTask();
|
||||
let mark = readline.question("Welche Aufgabe möchtest du abschließen?\n")
|
||||
mark = mark - 1;
|
||||
toDo[mark].state = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user