JavaScript-Developer-I Exam Question 46

A developer uses a parsed JSON string to work with user information as in the block below:
01 const userInformation ={
02 " id " : "user-01",
03 "email" : "[email protected]",
04 "age" : 25
Which two options access the email attribute in the object?
Choose 2 answers
  • JavaScript-Developer-I Exam Question 47

    Considering the implications of 'use strict' on line 04, which three statements describe the execution of the code?
    Choose 3 answers
  • JavaScript-Developer-I Exam Question 48

    developer creates a new web server that uses Node.js. It imports a server library that uses events and callbacks for handling server functionality.
    The server library is imported with require and is made available to the code by a variable named server. The developer wants to log any issues that the server has while booting up.
    Given the code and the information the developer has, which code logs an error at boost with an event?
  • JavaScript-Developer-I Exam Question 49

    Given the code below:
    01 function GameConsole (name) {
    02 this.name = name;
    03 }
    04
    05 GameConsole.prototype.load = function(gamename) {
    06 console.log( ` $(this.name) is loading a game : $(gamename) ...`);
    07 )
    08 function Console 16 Bit (name) {
    09 GameConsole.call(this, name) ;
    10 }
    11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;
    12 //insert code here
    13 console.log( ` $(this.name) is loading a cartridge game : $(gamename) ...`);
    14 }
    15 const console16bit = new Console16bit(' SNEGeneziz ');
    16 console16bit.load(' Super Nonic 3x Force ');
    What should a developer insert at line 15 to output the following message using the method ?
    > SNEGeneziz is loading a cartridge game: Super Monic 3x Force . . .
  • JavaScript-Developer-I Exam Question 50

    A developer has two ways to write a function:
    Option A:
    function Monster() {
    This.growl = () => {
    Console.log ("Grr!");
    }
    }
    Option B:
    function Monster() {};
    Monster.prototype.growl =() => {
    console.log("Grr!");
    }
    After deciding on an option, the developer creates 1000 monster objects.
    How many growl methods are created with Option A Option B?