What will be the output of below program? function fun(input: boolean) {let a = 10;if (input) {let b = a + 1;return b;}return b; }
Gajendra Jangid
function m1(boolean) {let a = 10;if (true){let b = a + 1;return b;}return b;}console.log(m1(1));
Output: 11
Compilation error.
a. 11b. undefinedc. Compilation error