A

Admin • 828.03K Points
Coach

Q. Which method checks if a string starts with a given prefix?

  • (A) starts()
  • (B) startsWith()
  • (C) beginWith()
  • (D) hasPrefix()

Explanation by: Admin
startsWith() checks if the string starts with a specified prefix.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.