JavaScript-Developer-I Exam Question 106

Universal Containers recently launched its new landing page to host a crowd-funding campaign. The page uses an external library to display some third-party ads. Once the page is fully loaded, it creates more than 50 new HTML items placed randomly inside the DOM, like the one in the code below:

All the elements includes the same ad-library-item class, They are hidden by default, and they are randomly displayed while the user navigates through the page.
  • JavaScript-Developer-I Exam Question 107

    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 108

    Considering the implications of 'use strict' on line 04, which three statements describe the execution of the code?
    Choose 3 answers
  • JavaScript-Developer-I Exam Question 109

    Refer to the code below:
    Async funct on functionUnderTest(isOK) {
    If (isOK) return 'OK' ;
    Throw new Error('not OK');
    )
    Which assertion accuretely tests the above code?
  • JavaScript-Developer-I Exam Question 110

    A test has a dependency on database.query. During the test the dependency is replaced with an object called database with the method, query, that returns an array. The developer needs to verify how many times the method was called and the arguments used each time.
    Which two test approaches describe the requirement?
    Choose 2 answers