Question 56

Refer to the following code:
Let sampleText = 'The quick brown fox jumps';
A developer needs to determine if a certain substring is part of a string.
Which three expressions return true for the given substring ?
Choose 3 answers
  • Question 57

    A developer at Universal Container creates a new landing page based on HTML, CSS, and JavaScript.
    To ensure that visitors have a good experience, a script named personalizeewebsiteCotent needs to be executed when the webpage is fully loaded (HTML content and all related files), in order to do some custom initialization.
    Which statement should be used to call personalizeWebsiteContent based on the above business requirement?
  • Question 58

    A developer wants to iterate through an array of objects and count the objects and count
    the objects whose property value, name, starts with the letter N.
    Const arrObj = [{"name" : "Zach"} , {"name" : "Kate"},{"name" : "Alise"},{"name" : "Bob"},{"name" :
    "Natham"},{"name" : "nathaniel"}
    Refer to the code snippet below:
    01 arrObj.reduce(( acc, curr) => {
    02 //missing line 02
    02 //missing line 03
    04 ). 0);
    Which missing lines 02 and 03 return the correct count?
  • Question 59

    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 60

    Refer to the code below:

    What is the value of result after the code executes?