ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 68 - Certified JavaScript Developer I discussion

Report
Export

Refer to the following code:

Let sampleText = 'The quick brown fox jumps';

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

Which three expressions return true for the given substring ?

Choose 3 answers

A.
sampleText.includes('fox');
Answers
A.
sampleText.includes('fox');
B.
sampleText.includes(' quick ', 4);
Answers
B.
sampleText.includes(' quick ', 4);
C.
sampleText.includes(' Fox ', 3)
Answers
C.
sampleText.includes(' Fox ', 3)
D.
sampleText.includes(' fox ');
Answers
D.
sampleText.includes(' fox ');
E.
sampleText.includes(' quick ') !== -1;
Answers
E.
sampleText.includes(' quick ') !== -1;
Suggested answer: B, D, E
asked 23/09/2024
Christopher Harden
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first