What will be the output of the following code snippet?
var myVar = 'First Value';
if (true) {
(function () {
var myVar ='Second Value'
})();
}
console.log(myVar);
Correct Answer:
First Value
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Node.js MCQ Questions