impatient-js icon indicating copy to clipboard operation
impatient-js copied to clipboard

Chapter: Control flow statements

Open rauschma opened this issue 7 years ago • 5 comments
trafficstars

rauschma avatar Jun 26 '18 19:06 rauschma

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?

rightpad avatar Sep 19 '18 18:09 rightpad

@da-moo Good point! That’ll be fixed in the next release.

rauschma avatar Mar 25 '19 09:03 rauschma

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 avatar May 23 '19 23:05 kswope

@kswope I’ve added a note that’ll be in the next release.

rauschma avatar Jan 02 '22 12:01 rauschma