String JavaScript berisi beberapa substring

if (/term1|term2|term3/.test("your string")) {
   //your code
}
Web Surfer