Question 86

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 87

    Refer to the following code that imports a module named utils:
    import (foo, bar) from '/path/Utils.js';
    foo() ;
    bar() ;
    Which two implementations of Utils.js export foo and bar such that the code above runs without error?
    Choose 2 answers
  • Question 88

    The developer wants to test this code:
    Const toNumber =(strOrNum) => strOrNum;
    Which two tests are most accurate for this code?
    Choose 2 answers
  • Question 89

    Considering the implications of 'use strict' on line 04, which three statements describe the execution of the code?
    Choose 3 answers