JavaScript ES6+ Quiz
Arrow functions, destructuring, promises, modules, and modern JavaScript features.
Question 1 of 7
Question 1 of 7javascript
What is the key difference between an arrow function and a regular function?
javascript
const obj = {
name: "Alice",
greet: function() { return this.name; },
greetArrow: () => this.name
};
obj.greet(); // ?
obj.greetArrow(); // ?