Which of the following if clauses determines whether the string stored in the part variable ends with the letter B?
a. if (part.ends("B"))
b. if (part.endswith("B")
c. if (part.substr(part.length() – 1, 1) == "B")
d. none of the above
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.