The includes() method You can use JavaScript's includes() method to check whether a string contains a substring. This will return true if the substring is found, or false if not.