let text = "abcdefghijklmnopqrstuvxyz"; let pattern = /e/; pattern.test(text) /*searches for pattern in text*/