Question 36

Which option is true about the strict mode in imported modules?
  • Question 37

    A developer wants to iterate through an array of objects and count the objects and count the objects whose property value, name, starts with the letter N.
    Const arrObj = [{"name" : "Zach"} , {"name" : "Kate"},{"name" : "Alise"},{"name" : "Bob"},{"name" :
    "Natham"},{"name" : "nathaniel"}
    Refer to the code snippet below:
    01 arrObj.reduce(( acc, curr) => {
    02 //missing line 02
    02 //missing line 03
    04 ). 0);
    Which missing lines 02 and 03 return the correct count?
  • Question 38

    Refer to the code below?
    Let searchString = ' look for this ';
    Which two options remove the whitespace from the beginning of searchString?
    Choose 2 answers
  • Question 39

    Refer to code below:
    Let productSKU = '8675309' ;
    A developer has a requirement to generate SKU numbers that are always 19 characters lon, starting with 'sku', and padded with zeros.
    Which statement assigns the values sku0000000008675309 ?
  • Question 40

    Universal Container(UC) just launched a new landing page, but users complain that the website is slow. A developer found some functions that cause this problem. To verify this, the developer decides to do everything and log the time each of these three suspicious functions consumes.
    console.time('Performance');
    maybeAHeavyFunction();
    thisCouldTakeTooLong();
    orMaybeThisOne();
    console.endTime('Performance');
    Which function can the developer use to obtain the time spent by every one of the three functions?