JavaScript-Developer-I Exam Question 21

A developer has an ErrorMandler module that contains multiple functions.
What kind of export should be leveraged so that multiple function can be used?
  • JavaScript-Developer-I Exam Question 22

    Which three statements are true about promises?
    The executor of a new promise runs automatically.
  • JavaScript-Developer-I Exam Question 23

    Refer to the expression below:
    Let x = ('1' + 2) == (6 + 2) ;
    How should this expression be modified to ensure that a evaluated to false?
  • JavaScript-Developer-I Exam Question 24

    A developer is creating a simple webpage with a button. When a user clicks this button for the first time, a message is displayed.
    The developer wrote the JavaScript code below, but something is missing. The message gets displayed time a user clicks the button instead of just the first time.

    Which two code lines make this code work as required? Choose 2 answers
  • JavaScript-Developer-I Exam Question 25

    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?