Question 56

A developer has the following array of student test grades:
Let arr = [ 7, 8, 5, 8, 9 ];
The Teacher wants to double each score and then see an array of the students who scored more than 15 points.
How should the developer implement the request?
  • Question 57

    A developer wants to create an object from a function in the browser using the code below:
    Function Monster() { this.name = 'hello' };
    Const z = Monster();
    What happens due to lack of the new keyword on line 02?
  • Question 58

    Given the code below:
    Function myFunction(){
    A =5;
    Var b =1;
    }
    myFunction();
    console.log(a);
    console.log(b);
    What is the expected output?
  • Question 59

    Refer to the code below:
    function foo () {
    const a =2;
    function bat() {
    console.log(a);
    }
    return bar;
    }
    Why does the function bar have access to variable a ?
  • Question 60

    In which situation should a developer include a try .. catch block around their function call ?