The test() method returns true if it finds a match, otherwise it returns false.

Click the button to search a string for the character "e".