Object literals in ES6 can include __________, a shorthand for defining functions.

  • Arrow Functions
  • Prototypes
  • Generators
  • Callbacks
ES6 introduced arrow functions as a shorthand for defining functions within object literals, offering a more concise syntax and lexically scoped 'this'.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *