What will be the output of the following code?
function myFunc(n) {
if(n == 6) {
let num = 2;
}
console.log(num);
}
myFunc(6);What will be the output of the following code?
function myFunc(n) {
if(n == 6) {
let num = 2;
}
console.log(num);
}
myFunc(6);Create a free account to access the full topic