ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 48 - Certified JavaScript Developer I discussion

Report
Export

Refer to the code below?

Let searchString = ' look for this ';

Which two options remove the whitespace from the beginning of searchString?

Choose 2 answers

A.
searchString.trimEnd();
Answers
A.
searchString.trimEnd();
B.
searchString.trimStart();
Answers
B.
searchString.trimStart();
C.
trimStart(searchString);
Answers
C.
trimStart(searchString);
D.
searchString.replace(/*\s\s*/, '');
Answers
D.
searchString.replace(/*\s\s*/, '');
Suggested answer: B, D
asked 23/09/2024
First Last
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first