generate functionWed, 30 Nov 2022

find if the given string has the letter "e" in it, and output an alert if so

# function hasE(string) { if (string.match(/e/gi)) { alert("This string contains the letter 'e'!"); } }

Questions about programming?Chat with your personal AI assistant