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
Latest JavaScript Developer I Practice Questions with 144 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments