Refer to the codebelow:
function foo () {
const a =2;
function bat() {
console.log(a);
}
return bar;
Why does the function bar have access to variable a ?
Limited Time Offer
25%
Off
Dana
12 days agoHuey
20 days agoDelila
5 days agoChara
21 days agoSvetlana
28 days agoTyisha
29 days agoSvetlana
1 months ago