Question 1

A developer wrote a fizzbuzz function that when passed in a number, returns the following:
'Fizz' if the number is divisible by 3.
'Buzz' if the number is divisible by 5.
'Fizzbuzz' if the number is divisible by both 3 and 5.
Empty string if the number is divisible by neither 3 or 5.
Which two test cases will properly test scenarios for the fizzbuzz function?
Choose 2 answers
  • Question 2

    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.
  • Question 3

    Refer to the code below:

    What is display when the cod executes?
  • Question 4

    Given a value, which three options can a developer use to detect of the value is NaN?
    Choose 3 answers
  • Question 5

    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.