📜  javascript 函数声明 vs 箭头函数 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:45.730000             🧑  作者: Mango

代码示例2
Regular functions created through function declarations / expressions are both constructible and callable. ... Arrow functions (and methods) are only callable i.e arrow functions can never be used as constructor functions. Hence, they can never be invoked with the new keyword.