Question 116

Refer to the code below:
Let textValue = '1984';
Which code assignment shows a correct way to convert this string to an integer?
  • Question 117

    Refer tothe code below:
    const event = new CustomEvent(
    //Missing Code
    );
    obj.dispatchEvent(event);
    A developer needs to dispatch a custom event called update to send information about recordId.
    Which two options could a developer insert at the placeholder in line02 to achieve this?
    Choose 2 answers
  • Question 118

    static delay = async delay = > {
    return new Promise(resolve = > {
    setTimeout(resolve, delay);
    });
    };
    static asyncCall = async () = > {
    await delay(1000);
    console.log(1);
    };
    console.log(2);
    asyncCall();
    console.log(3);
    Assume delay and asyncCall are in scope as functions.
    What is logged to the console?
  • Question 119

    A developer creates an object where its properties should be immutable and prevent properties from being added or modified.
    Which method should be used to execute this business requirement?
  • Question 120

    Refer to the following object:
    const cat ={
    firstName: 'Fancy',
    lastName: ' Whiskers',
    Get fullName() {
    return this.firstName + ' ' + this.lastName;
    }
    };
    How can a developer access the fullName property for cat?