logo

Crowdly

Browser

Add to Chrome

Given the following function: function add(x) { return y => y + x; } What ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Given the following function:

function add(x) {

return y => y + x;

}

What term describes the mechanism that allows the inner anonymous function (y => y + x) to access the x variable from its containing add function, even after add has finished executing?

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome