Search for a character in the text provided.
<script>
let text = "It is startling to think that, even in the darkest depths of World War II, J. R. R. Tolkien was writing the trilogy, which contains, with the applicability available only to poetry and myth, the essential notion that the good grey wizard can understand the evil magi precisely because he is just enough! like them to grasp their minds and motives in ways that they cannot grasp!!";
for (let i = 0; i < text.length; i++) {
if (text.charAt(i) === "!") {
alert("Exclamation point found!");
break;
}
}
</script>