Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Javascript Developer I Topic 2 Question 98 Discussion

Actual exam question for Salesforce's Javascript Developer I exam
Question #: 98
Topic #: 2
[All Javascript Developer I Questions]

Refer to the string below:

const str = 'Salesforce';

Which two statements result in the word 'Sales'?

Choose 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: B, D

Contribute your Thoughts:

Val
4 days ago
But substr starts at the specified index, while substring includes the start index.
upvoted 0 times
...
Alfreda
7 days ago
I disagree, I believe it's A and C.
upvoted 0 times
...
Bonita
9 days ago
I always get substr and substring mixed up. But I think B is the right one.
upvoted 0 times
...
Val
26 days ago
I think the correct answers are B and D.
upvoted 0 times
...
Elbert
27 days ago
Substring is the way to go! B and D are the correct answers.
upvoted 0 times
Glory
11 days ago
Yes, you're right! B and D are the correct answers.
upvoted 0 times
...
Anglea
14 days ago
D) str.substring (0, 5);
upvoted 0 times
...
Carline
19 days ago
B) str.substr (0, 5);
upvoted 0 times
...
...

Save Cancel