How to check if the String contains the Substring in Javascript?

How to check if the String contains the Substring in Javascript?

More to explore

Based on this image's title: “How to check if the String contains the Substring in Javascript?