1. Question: 
    var stackWork=new Array(“Lenny”,Harild”,”Mary”,”Jenny”,”Sal”);
    stackWork.unshift(“Willie”);
    what is output comes out?

    A
    Sal

    B
    Willie, Lenny, Harold, Mary, Jean, Sal

    C
    Willie

    D
    Lenny

    Note: Not available
    1. Report
  2. Question: 
    var Lit=[“yes”,”no”,”maybe”];
    document.write(Lit[2]);
    Above condition what is come out?

    A
    maybe

    B
    yes

    C
    no

    D
    Undefined

    Note: Not available
    1. Report
  3. Question: What will be the output for the following code:
    var x = 1;
       if (true) {
            var x = 2;
            document.write(x);
       }
        document.write(x);
    New

    A
    11

    B
    12

    C
    22

    D
    21

    Note: Not available
    1. Report
  4. Question: What will be the output for the following code:
    let y = 1;
         if (true) {
             let y = 2;
             document.write(y);
         }
        document.write(y);
    New

    A
    11

    B
    12

    C
    22

    D
    21

    Note: Not available
    1. Report
  5. Question: What will be the output for the following code
    const PI=3.14;
            PI=3.145;
            document.write(PI);
    New

    A
    3.14

    B
    3.145

    C
    Compile Error

    D
    PI

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd