English

There are differences between arrow functions and traditional functions, as well as some limitations:

  •     Arrow functions don't have their own bindings to this, arguments or super, and should not be used as methods.
  •     Arrow functions don't have access to the new.target keyword.
  •     Arrow functions aren't suitable for call, apply and bind methods, which generally rely on establishing a scope.
  •     Arrow functions cannot be used as constructors.
  •     Arrow functions cannot use yield, within its body.

Readmore: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

Vietnamese

Có sự khác biệt giữa các Arrow function và các hàm truyền thống, cũng như một số hạn chế:

  • Các Arrow function không có ràng buộc riêng đối với điều này, arguments hoặc super, và không nên được sử dụng làm phương thức.
  • Các Arrow function không có quyền truy cập vào từ khóa new.target.
  • Các Arrow function không phù hợp với các phương thức gọi, áp dụng và ràng buộc, các phương thức này thường dựa vào việc thiết lập một phạm vi.
  • Không thể sử dụng Arrow function làm constructors.
  • Các Arrow function không thể sử dụng yield, trong nội dung của nó.