Question 131

Consider type coercion, what does the following expression evaluate to?
True + 3 + '100' + null
  • Question 132

    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?
  • Question 133

    Refer to code below:
    Let a ='a';
    Let b;
    // b = a;
    console.log(b);
    What is displayed when the code executes?
  • Question 134

    A developer needs to test this function:
    01 const sum3 = (arr) => (
    02 if (!arr.length) return 0,
    03 if (arr.length === 1) return arr[0],
    04 if (arr.length === 2) return arr[0] + arr[1],
    05 return arr[0] + arr[1] + arr[2],
    06 );
    Which two assert statements are valid tests for the function?
    Choose 2 answers
  • Question 135

    A developer needs to test this functions:

    Which two assert statements are valid tests for this function?