ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 192 - Certified JavaScript Developer I discussion

Report
Export

Refer to the string below: const str = 'Salesforce'; Which two statements result in the word 'Sales'?

Choose 2 answers

A.
str.substr(1, 5);
Answers
A.
str.substr(1, 5);
B.
str.substr (0, 5);
Answers
B.
str.substr (0, 5);
C.
str.substring (1, 5);
Answers
C.
str.substring (1, 5);
D.
str.substring (0, 5);
Answers
D.
str.substring (0, 5);
Suggested answer: B, D
asked 23/09/2024
Ehsan Ali
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first