impatient-js
impatient-js copied to clipboard
Chapter: Control flow statements
The exercise: exercises/control-flow/month_to_number_test.js seems to be reversed based on the writing. I was expecting to write a switch statement that takes a string of the month and outputs a number, however the test seems to be the reverse of that. Is this intended?
@da-moo Good point! That’ll be fixed in the next release.
I think its more illuminating to explain a do-while loop as a loop that always runs a block of code once, unlike a while loop, which might not run at all. Beginners might not get the point.
Wiki makes this point right out of the gate.
https://en.wikipedia.org/wiki/Do_while_loop
@kswope I’ve added a note that’ll be in the next release.