professional-javascript-for-web-developers-4e icon indicating copy to clipboard operation
professional-javascript-for-web-developers-4e copied to clipboard

Chapter 7 p234

Open fanxinping opened this issue 4 years ago • 0 comments

Miss ')' of the for .. of .. in try ... catch ... block. Should be:

try {
  for (let i of counter2) {
    if (i > 2) {
      throw 'err';
    }
    console.log(i);
  }
} catch(e) {}
// 1
// 2
// Exiting early

fanxinping avatar Oct 15 '21 11:10 fanxinping