Question #267

Author: admin
tags: JavaScript  
class Tryer {
  constructor(callback) {
    try {
      callback();
    } catch {
      console.log('1');
    }
  }
}

try {
  new Tryer(() => {
    throw new Error('Meow!');
  });
} catch (err) {
  console.log('2');
}
What will be printed?
1
2
1, 2
Rate the difficulty of the question:
easyhard