Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 11 Topic 2 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 11 Topic 2 Discussion

JavaScript-Developer-I Exam Topic 2 Question 11 Discussion:
Question #: 11
Topic #: 2

Refer to the following code:

Let sampleText = ‘The quick brown fox jumps’;

A developer needs to determine if a certainsubstring is part of a string.

Which three expressions return true for the given substring ?

Choose 3 answers


A.

sampleText.includes(‘fox’);


B.

sampleText.includes(‘ quick ’, 4);


C.

sampleText.includes(‘ Fox ’, 3)


D.

sampleText.includes(‘ fox ’);


E.

sampleText.includes(‘ quick ’) !== -1;


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.