A

Admin • 828.03K Points
Coach

Q. Which method checks if a string ends with a given suffix?

  • (A) endsWith()
  • (B) hasSuffix()
  • (C) finishWith()
  • (D) ends()

Explanation by: Admin
endsWith() checks whether a string ends with the specified suffix.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.