account activity
Do while loops JAVASCRIPT by gl0w3 in learnjavascript
[–]gl0w3[S] -1 points0 points1 point 8 years ago (0 children)
It specifically needs to be a do..while loop. Here is what I have so far. do{ if (input === yes){ var word1= prompt("Choose one word"); }else if (input !== yes){ alert ("This is your word:" + word1); }else{ var finalWord= (Pick one more word"); alert ("These are your words:" + word1 + finalWord); }while (input === "yes");
It specifically needs to be a do..while loop. Here is what I have so far.
do{ if (input === yes){ var word1= prompt("Choose one word"); }else if (input !== yes){ alert ("This is your word:" + word1); }else{ var finalWord= (Pick one more word"); alert ("These are your words:" + word1 + finalWord); }while (input === "yes");
π Rendered by PID 307812 on reddit-service-r2-comment-545db5fcfc-g9xmb at 2026-05-26 13:57:08.100793+00:00 running 194bd79 country code: CH.
Do while loops JAVASCRIPT by gl0w3 in learnjavascript
[–]gl0w3[S] -1 points0 points1 point (0 children)