Question 6

Refer to the code below:

What is the value of result after the code executes?
  • Question 7

    Refer to the following code:
    Let sampleText = 'The quick brown fox jumps';
    A developer needs to determine if a certain substring is part of a string.
    Which three expressions return true for the given substring ?
    Choose 3 answers
  • Question 8

    Refer to the following code that imports a module named utils:
    import (foo, bar) from '/path/Utils.js';
    foo() ;
    bar() ;
    Which two implementations of Utils.js export foo and bar such that the code above runs without error?
    Choose 2 answers
  • Question 9

    Refer to the code below:

    What is the result of running line 05?
  • Question 10

    Refer to the following code:
    01 function Tiger(){
    02 this.Type = 'Cat';
    03 this.size = 'large';
    04 }
    05
    06 let tony = new Tiger();
    07 tony.roar = () =>{
    08 console.log('They\'re great1');
    09 };
    10
    11 function Lion(){
    12 this.type = 'Cat';
    13 this.size = 'large';
    14 }
    15
    16 let leo = new Lion();
    17 //Insert code here
    18 leo.roar();
    Which two statements could be inserted at line 17 to enable the function call on line 18?
    Choose 2 answers.