Question 36

A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:
Import printPrice from '/path/PricePrettyPrint.js';
Based on the code, what must be true about the printPrice function of the PricePrettyPrint module for this import to work ?
  • Question 37

    Teams at Universal Containers (UC) work on multiple JavaScript projects at the same time.
    UC is thinking about reusability and how each team can benefit from the work of others.
    Going open-source or public is not an option at this time.
    Which option is available to UC with npm?
  • Question 38

    Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?
  • Question 39

    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 40

    Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?