const text = "Hello World";
if (text.startsWith("He")) {
  alert("The text begins with 'He'");
}