Answer would be Option 3
because we are passing an arrow function to the setTimeout
. Arrow functions retains the scope of their definition. Hence, when the arrow function will be called then context will be same as sayName
function.
For useful and amazing frontend and programming tutorials: https://bit.ly/devtools-yt