Question 56

Refer to the following object.

How can a developer access the fullName property for dog?
  • Question 57

    Refer to the code snippet below:
    Let array = [1, 2, 3, 4, 4, 5, 4, 4];
    For (let i =0; i < array.length; i++)
    if (array[i] === 4) {
    array.splice(i, 1);
    }
    }
    What is the value of array after the code executes?
  • Question 58

    Refer tofollowing code:
    class Vehicle {
    constructor(plate) {
    This.plate =plate;
    }
    }
    Class Truck extends Vehicle {
    constructor(plate, weight) {
    //Missing code
    This.weight = weight;
    }
    displayWeight() {
    console.log('The truck ${this.plate} has a weight of${this.weight} lb.');}} Let myTruck = new Truck('123AB', 5000); myTruck.displayWeight(); Which statement should be added to line 09 for the code to display 'The truck 123AB has a weight of 5000lb.'?
  • Question 59

    A developer has the function, shown below, that is called when a page loads.
    function onload() {
    console.log("Page has loaded!");
    }
    Where can the developer see the log statement after loading the page in the browser?
  • Question 60

    developer wants to use a module named universalContainersLib and them callfunctions from it.
    How should a developer import every function from the module and then call the functions foo and bar ?