Question 1

Refer to the code below:
Const searchTest = 'Yay! Salesforce is amazing!" ;
Let result1 = searchText.search(/sales/i);
Let result 21 = searchText.search(/sales/i);
console.log(result1);
console.log(result2);
After running this code, which result is displayed on the console?
  • Question 2

    Refer to the following code:

    What is the output of line 11?
  • Question 3

    Refer to the code:

    Given the code above, which three properties are set pet1?
    Choose 3 answers:
  • Question 4

    Refer to the code below:

    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 line 02 to achieve this? Choose 2 answers
  • Question 5

    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?