Question: What is output of below code ? let count=0; (function() { if (count === 0) { let count = 1; } console.log(count); console.log(count); })();
What is output of below code ? let count=0; (function() { if (count === 0) { let count = 1; } console.log(count); console.log(count); })();
Step by Step Solution
There are 3 Steps involved in it
In this code snippet there are two occurrences of the variable count One is declared out... View full answer
Get step-by-step solutions from verified subject matter experts
