progress of course is saved, but the green checkmark does not appear for all completed steps. see printscreens for more info.
If the checkmark does not appear, you won't be able to submit an excercise in the next step, because the gear wheel won't stop running. in that case you have to refresh the webpage (F5).
Replace this line with your code.