Which of the following statements assigns the first three characters in the part variable to the code

Question:

Which of the following statements assigns the first three characters in the part variable to the code variable? 

a. code = part.assign(0, 3); 

b. code = part.substr(0, 3); 

c. code = part.substr(1, 3); 

d. code = part.substring(0, 3);

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

Step by Step Answer:

Question Posted: