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

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();
B . searchString.trimStart();
C . trimStart(searchString);
D . searchString.replace(/*ss*/, ‘’);

Answer: B,D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments