Question 11

Given the expressionsvar1 and var2, what are two valid ways to return the concatenation of the two expressions and ensure it is string? Choose 2 answers
  • Question 12

    A team at Universal Containers works on a big project and uses yarn to manage the project's dependencies.
    A developer added a dependency to manipulate dates and pushed the updates to the remote repository. The rest of the team complains that the dependency does not get downloaded when they execute yarn.
    What could be the reason for this?
  • Question 13

    Given the code below:
    01 setCurrentUrl();
    02 console.log("The current URL is: " + url);
    03
    04 function setCurrentUrl() {
    05 url = window.location.href;
    06 }
    What happens when the code executes?
  • Question 14

    Which statement can a developer apply to increment the browser's navigation history without a page refresh?
    Which statement can a developer apply to increment the browser's navigation history without a page refresh?
  • Question 15

    01 function changeValue(obj) {
    02 obj.value = obj.value / 2;
    03 }
    04 const objA = { value: 10 };
    05 const objB = objA;
    06
    07 changeValue(objB);
    08 const result = objA.value;
    What is the value of result?