Question 46

Refer to code below:
Function muFunction(reassign){
Let x = 1;
var y = 1;
if( reassign ) {
Let x= 2;
Var y = 2;
console.log(x);
console.log(y);}
console.log(x);
console.log(y);}
What is displayed when myFunction(true) is called?
  • Question 47

    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 48

    The developer wants to test this code:
    Const toNumber =(strOrNum) => strOrNum;
    Which two tests are most accurate for this code?
    Choose 2 answers
  • Question 49

    Refer to the code below:

    Which statement allows a developer to cancel the scheduled timed function?
  • Question 50

    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.