A

Admin • 830.13K Points
Coach

Q. Which method is used to check if a string contains another string?

  • (A) has()
  • (B) includes()
  • (C) contains()
  • (D) match()

Explanation by: Admin
contains() checks whether a string contains a specified sequence.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.