Question 146

Refer of the string below:
Const str = 'sa;esforce'=;
Which two statement result in the word 'Sale'?
Choose 2 answers
  • Question 147

    Which three options show valid methods for creating a fat arrow function?
    Choose 3 answers
  • Question 148

    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 149

    Refer to the code below:
    new Promise((resolve, reject) => {
    const fraction = Math.random();
    if( fraction >0.5) reject("fraction > 0.5, " + fraction);
    resolve(fraction);
    })
    .then(() =>console.log("resolved"))
    .catch((error) => console.error(error))
    .finally(() => console.log(" when am I called?"));

    When does Promise.finally on line 08 get called?
  • Question 150

    A developer is asked to fix some bugs reported by users. To do that, the developer adds a breakpoint for debugging.
    Function Car (maxSpeed, color){
    This.maxspeed =masSpeed;
    This.color = color;
    Let carSpeed = document.getElementById(' CarSpeed');
    Debugger;
    Let fourWheels =new Car (carSpeed.value, 'red');
    When the code execution stops at the breakpoint on line 06, which two types of information are available in the browser console ?
    Choose 2 answers: