Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 6 Topic 1 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 6 Topic 1 Discussion

JavaScript-Developer-I Exam Topic 1 Question 6 Discussion:
Question #: 6
Topic #: 1

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(/*\s\s*/, ‘’);


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.