#JS Practice Quiz Help
2 messages · Page 1 of 1 (latest)
"Repeat steps 2 and 3 until x is 20"
That means steps 2 and 3 will not run when x is 20.
The first one works, because the test of the value of x happens when it is 19 and that allows steps 2 and 3 to run again. The value of x becomes 20 in step 2, and that value of 20 is displayed in step 3. This is an unreachable state in the other version.