ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 132 - Certified JavaScript Developer I discussion

Report
Export

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?

A.
> true > false
Answers
A.
> true > false
B.
> 5 >undefined
Answers
B.
> 5 >undefined
C.
> 5 > -1
Answers
C.
> 5 > -1
D.
> 5 > 0
Answers
D.
> 5 > 0
Suggested answer: B
asked 23/09/2024
Marcin Weglarski
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first