Question 81

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 82

    A developer is leading the creation of a new browser application that will serve a single page application. The team wants to use a new web framework Minimalsit.js. The Lead developer wants to advocate for a more seasoned web framework that already has a community around it.
    Which two frameworks should the lead developer advocate for?
    Choose 2 answers
  • Question 83

    In the browser, the window object is often used to assign variables that require the broadest scope in an application Node.js application does not have access to the window object by default.
    Which two methods are used to address this ?
    Choose 2 answers
  • Question 84

    Given code below:
    setTimeout (() => (
    console.log(1);
    ). 0);
    console.log(2);
    New Promise ((resolve, reject )) = > (
    setTimeout(() => (
    reject(console.log(3));
    ). 1000);
    )).catch(() => (
    console.log(4);
    ));
    console.log(5);
    What is logged to the console?
  • Question 85

    Refer to the following code that imports a module named utils:
    import (foo, bar) from '/path/Utils.js';
    foo() ;
    bar() ;
    Which two implementations of Utils.js export foo and bar such that the code above runs without
    error?
    Choose 2 answers