Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated August 2025
Definition
The checkForSubstring method is a programming function that determines whether a given string contains a specific substring. It returns a boolean value indicating whether the substring is found within the string.