Zach Corpuz2,363 Points
Having trouble turning this into a do...while loop
I dont understand what the while portion of this code should be. I would have thought that if secret === sesame then it would pass, but it is still saying I am getting this problem incorrect.
Steven Parker201,913 Points
Here's a few hints:
- you'll only need to use "prompt" one time
- before the loop, "secret" will only be declared but not assigned
- a "do" loop has no conditional expression by the "do" (only by the "while")
- a "do" loop also has no code body after the "while", only between the "do" and "while"
Give it another shot with those in mind.