JavaScript-Developer-I Exam Question 51

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
  • JavaScript-Developer-I Exam Question 52

    Refer to the following code:
    function test (val) {
    If (val === undefined) {
    return 'Undefined values!' ;
    }
    if (val === null) {
    return 'Null value! ';
    }
    return val;
    }
    Let x;
    test(x);
    What is returned by the function call on line 13?
  • JavaScript-Developer-I Exam Question 53

    Refer to the code below:

    Considering that JavaScript is single-threaded, what is the output of line 08 after the code executes?
  • JavaScript-Developer-I Exam Question 54

    A team that works on a big project uses npm to deal with projects dependencies.
    A developer added a dependency does not get downloaded when they execute npm install.
    Which two reasons could be possible explanations for this?
    Choose 2 answers
  • JavaScript-Developer-I Exam Question 55

    Refer to the code below:
    let sayHello = () => {
    console.log ('Hello, world!');
    };
    Which code executes sayHello once, two minutes from now?