Gajendra Jangid
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; }
By Gajendra Jangid in Angular on Feb 11 2019
  • shashi mishra
    Jul, 2019 26

    function m1(boolean) {
    let a = 10;
    if (true)
    {
    let b = a + 1;
    return b;
    }
    return b;
    }
    console.log(m1(1));

    Output: 11

    • 0
  • Jack Son
    Jul, 2019 18

    Compilation error.

    • 0
  • Gajendra Jangid
    Feb, 2019 11

    a. 11b. undefinedc. Compilation error

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS