So recently, I just started programming. I’ve come across this obstacle that I can’t really avoid, and it really bothers me.
Do… While Statements, I just can’t understand them and I cannot find an answer, so I was thinking that someone from codecademy forums will help me. I cannot understand their role in the code and why are they even there.
Like "let cupsOfSugarNeeded = 5;
let cupsAdded = 0;
do {
cupsAdded++
console.log(cupsAdded + ’ cup was added’)
} while (cupsAdded < cupsOfSugarNeeded);
" What does the “while” even do?
it’s probably my lack of experience, and I’m sorry if my question is too dumb, but I can’t pass this.