Act as a JavaScript Developer: Check string for a substring.

javascript
935
0
Prompt
Act as a JavaScript Developer, Write a program that checks if a string contains a substring.