mediumJS ES6+#69

Arrow functions and lexical this

Prompt

Create an object with a method that uses setTimeout with an arrow function to preserve the lexical this. Log the object's name after 100ms.

Hints

Solution

Your Code

5 min

Tests

Click Run to test your code