Which of the following assigns the fifth character in the word variable to the letter variable? a.

Question:

Which of the following assigns the fifth character in the word variable to the letter variable? 

a. letter = word.substr(4); 

b. letter = word.substr(4, 1); 

c. letter = word(5).substring; 

d. letter = substring(word, 5);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: