What will be the value of speed at the end?

3129

Since goFaster is true, speed will be 31 at the end.