Q. What will be the output of the following code snippet?
Code:(function(a){
return (function(){
console.log(a);
a = 6;
})()
})(21);
β
Correct Answer: (C)
21
(function(a){
return (function(){
console.log(a);
a = 6;
})()
})(21);
You must be Logged in to update hint/solution