js | new Error()

new error() const x = Error('I was created using a function call!'); console.log(x); const y = new Error('I was constructed via the "new" keyword!'); console.log(y);
相關文章
相關標籤/搜索