Question 76

A developer has an ErrorMandler module that contains multiple functions.
What kind of export should be leveraged so that multiple function can be used?
  • Question 77

    A developer at Universal Containers creates a new landing page based on HTML, CSS, and JavaScript TO ensure that visitors have a good experience, a script named personaliseContext 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 78

    A team that works on a big project uses npm to deal with projects dependencies.
    A developer added a dependency does not get downloaded when they execute npm
    install.
    Which two reasons could be possible explanations for this?
    Choose 2 answers
  • Question 79

    Refer to the code below:
    for(let number =2 ; number <= 5 ; number += 1 ) {
    // insert code statement here
    }
    The developer needs to insert a code statement in the location shown. The code statement has these requirements:
    1. Does require an import
    2. Logs an error when the boolean statement evaluates to false
    3. Works in both the browser and Node.js
    Which meet the requirements?
  • Question 80

    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?