here is my issue. im trying to make a for loop that lets me show the assignments and then gives a user the option to edit, delete, and even add to the array....but no matter what i do it doesnt make sense or it wont work.
var remove1="Delete";
let assignments = new Array ("chapter1", "chapter2", "chapter3", "chapter4", "chapter5", "chapter6", "chapter7",
"chapter8", "chapter9", "chapter10", "chapter11", "chapter12", "chapter13", "chapter14", "chapter15");
while (assignin != "") {
{var assignin = window.prompt("So what would you like to do?","");}
if ((assignin===null)||(assignin===""))
{document.write("sorry not an available option restart and try again");}
else if (assignin === remove1)
{var remove2 = window.prompt,text = "ok which would you like to remove<br>"
for (let i = 0; i < assignment.length; i++) {
text += assignment[i] + "<br>";
} "";}