Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 11: Managing Errors, Debugging, and Handling Events in JavaScript!
You have completed (UPI) Chapter 11: Managing Errors, Debugging, and Handling Events in JavaScript!
Instruction
Valid for-of loop
You need to remove the initializer (value = 50) in the head of the for-of loop. Maybe you intended to make 50 an offset value, in that case, you could add it to the loop body, for example.
const iterable = [10, 20, 30];
for (let value of iterable) {
value += 50;
console.log(value);
}
// 60
// 70
// 80