Exam4Training

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

Exit mobile version