Write a function to extract the first name in the string “Mrs. Jake Luther”?

Write a function to extract the first name in the string “Mrs. Jake Luther”?
A. Substring
B. Substr
C. Substi
D. Return
 
Answer: b
Explanation: The substr() function gives a part of a string. The substr() method will give parts of a string, beginning at the character of the specified position, and returns the specified number of characters.
 

Tìm kiếm

Back
Top