How to Check if String Contains Array of Substrings in Javascript

This is very basic tutorial of javascript where you will learn how to check if string contains array of substrings.

const validDomains = ['', '', ''];

const email = 'I have accounts at and';

const result = validDomains.every(domain => email.includes(domain));

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="script.js"></script>