throw-vs-console-error
예외처리문
throw
throw "Error2";
throw 42;
throw true;
throw {toString: function() { return I'm an object}}try...catch
catch (catchID) { statements }
이거 조사하는 이유
throw Error('msg')
console.error('msg')
Last updated
Was this helpful?