JavaScript-Developer-I Exam Question 156

Refer to the following object.

How can a developer access the fullName property for dog?
  • JavaScript-Developer-I Exam Question 157

    A developer wants to use a module called DataPrettyPrint. This module exports one default functioncalled printDate ().
    How can a developer import and use the printDate() function?
  • JavaScript-Developer-I Exam Question 158

    Refer to the code below:
    01 const server = require('server');
    02 /* Insert code here */
    A developer imports a library that creates a web server. The imported library uses events and
    callbacks to start the servers
    Which code should be inserted at the line 03 to set up an event and start the web server ?
  • JavaScript-Developer-I Exam Question 159

    A developer is creating a simple webpage with a button. When a user clicks this button
    for the first time, a message is displayed.
    The developer wrote the JavaScript code below, but something is missing. The
    message gets displayed every time a user clicks the button, instead of just the first time.
    01 function listen(event) {
    02 alert ( 'Hey! I am John Doe') ;
    03 button.addEventListener ('click', listen);
    Which two code lines make this code work as required?
    Choose 2 answers
  • JavaScript-Developer-I Exam Question 160

    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