Strings
Search Inside Text
Search Inside Text
includes answers a yes-or-no question: does this string contain that text?
Your task: Create hasFailure by checking whether the provided message contains the keyword stored in alertWord. Log the boolean.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Search Inside Text
includes answers a yes-or-no question: does this string contain that text?
Your task: Create hasFailure by checking whether the provided message contains the keyword stored in alertWord. Log the boolean.