ErrorType

Report a typo

What will be the output of the following code?

function myFunc(n) {
   if(n == 6) {
      let num = 2;  
   }
   console.log(num);
}

myFunc(6);
Select one option from the list
___

Create a free account to access the full topic