Which two statement result in the word ‘Sale’?

Refer of the string below:

Const str = ‘sa;esforce’=;

Which two statement result in the word ‘Sale’? Choose 2 answers
A . str, substring (0,5) ;
B . str, substr(0,5) ;
C . str, substring(1,5) ;
D . str, substr(1,5) ;

Answer: A,B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments