JavaScript-Developer-I Exam Question 121

Given the code below:
const copy = JSON.stringify([ new String(' false '), new Bollean( false ), undefined ]);
What is the value of copy?
  • JavaScript-Developer-I Exam Question 122

    Refer to code below:
    function Person() {
    this.firstName = 'John';
    }
    Person.prototype ={
    Job: x => 'Developer'
    };
    const myFather = new Person();
    const result =myFather.firstName + ' ' + myFather.job();
    What is the value of the result after line 10 executes?
  • JavaScript-Developer-I Exam Question 123

    Refer to the code below:

    What is the result when the Promise in the execute function is rejected?
  • JavaScript-Developer-I Exam Question 124

    Refer the code below.
    x=3.14;
    function myfunction() {
    "use strict";
    y=x;
    }
    z=x;
    myFunction();

    JavaScript-Developer-I Exam Question 125

    A developer wrote the following code to test a sum3 function that takes in an array of numbers and returns the sum of the first three numbers in the array, and the test passes.
    A different developer made changes to the behavior of sum3 to instead sum only the first two numbers present in the array.

    Which two results occur when running this test on the updated sum3 function?
    Choose 2 answers