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 86 Discussion

Actual exam question for Salesforce's Salesforce Certified JavaScript Developer I exam
Question #: 86
Topic #: 2
[All Salesforce Certified 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:

Gail
3 days ago
I think the correct answers are B) and D)
upvoted 0 times
...
Elfrieda
7 days ago
Oh, I see your point. Thanks for clarifying.
upvoted 0 times
...
Gabriele
9 days ago
But substr() includes the starting index, while substring() does not. So, A) and B) are correct.
upvoted 0 times
...
Elfrieda
10 days ago
I disagree, I believe it's C) and D)
upvoted 0 times
...
Gabriele
12 days ago
I think the answer is A) and B)
upvoted 0 times
...
Fidelia
20 days ago
Definitely B) and D). Anything else would be 'Sales'-ing yourself short!
upvoted 0 times
...
Kaitlyn
30 days ago
Ah, the good old 'substr' vs 'substring' debate. I'm going with B) and D) - they just roll off the tongue, you know?
upvoted 0 times
...
Joni
1 months ago
Hmm, I think B) and D) are the way to go. Who needs 'substr' when you've got 'substring'? It's like having two spoons when one will do!
upvoted 0 times
Bo
4 days ago
C) str.substring (1, 5);
upvoted 0 times
...
Dalene
18 days ago
A) str.substr(1, 5);
upvoted 0 times
...
...
Rodrigo
1 months ago
The correct answers are B) and D). 'substr' and 'substring' both return the characters from the specified indices, but 'substr' takes the length as the second argument, while 'substring' takes the end index.
upvoted 0 times
Merlyn
4 days ago
B) str.substr (0, 5);
upvoted 0 times
...
Dominga
21 days ago
A) str.substr(1, 5);
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77