1. As long as i is smaller than
3the loop keeps running. After each iteration i is incremented by 1. In each iteration we log the current value of i. We also add the value of i to the variable result. Task: Adjust the code such that the
true. Hint: Be careful not to implement an infinite loop!
Get a premium membership to access this content: