JavaScript-Developer-I Exam Question 46

Refer to the code:
01 console.log( ' Start ' );
02 Promise.resolve( ' Success ' ).then(function(value) {
03 console.log( ' Success ' );
04 });
05 console.log( ' End ' );
What is the output after the code executes successfully?
  • JavaScript-Developer-I Exam Question 47

    Given the code below:
    01 function Person(name, email) {
    02 this.name = name;
    03 this.email = email;
    04 }
    05
    06 const john = new Person( ' John ' , ' [email protected] ' );
    07 const jane = new Person( ' Jane ' , ' [email protected] ' );
    08 const emily = new Person( ' Emily ' , ' [email protected] ' );
    09
    10 let usersList = [john, jane, emily];
    Which method can be used to provide a visual representation of the list of users and to allow sorting by the name or email attribute?
  • JavaScript-Developer-I Exam Question 48

    Given a value, which two options can a developer use to detect if the value is NaN?
  • JavaScript-Developer-I Exam Question 49

    A developer needs to debug a Node.js web server because a runtime error keeps occurring at one of the endpoints.
    The developer wants to test the endpoint on a local machine and make the request against a local server to look at the behavior. In the source code, the server.js file will start the server. The developer wants to debug the Node.js server only using the terminal.
    Which command can the developer use to open the CLI debugger in their current terminal window?
    (With corrected typing errors: node_inspect # node inspect, node_start_inspect # node start inspect.)
  • JavaScript-Developer-I Exam Question 50

    Refer to the following object:
    01 const cat = {
    02 firstName: ' Fancy ' ,
    03 lastName: ' Whiskers ' ,
    04 get fullName(){
    05 return this.firstName + ' ' + this.lastName;
    06 }
    07 };
    How can a developer access the fullName property for cat?