JavaScript-Developer-I Exam Question 36

Refer to the code:

Given the code above, which three properties are set for pet1? Choose 3 answers
  • JavaScript-Developer-I Exam Question 37

    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 38

    Refer to the following code that performs a basic mathematical operation on a provided
    input:
    function calculate(num) {
    Return (num +10) / 3;
    }
    How should line 02 be written to ensure that x evaluates to 6 in the line below?
    Let x = calculate (8);
  • JavaScript-Developer-I Exam Question 39

    Given the JavaSript below:

    Which code should replace the placeholder comment on line 05 to hide accounts that do not match the search string?
  • JavaScript-Developer-I Exam Question 40

    developer has a web server running with Node.js. The command to start the web
    server is node server,js. The web server started having latency issues. Instead of a one second
    turn around for web requests, the developer now sees a five second turnaround,
    Which command can the web developer run to see what the module is doing during the
    latency period?