Как добавить функцию в JavaScript

//this is an example of a function including an alert
function example() {
  alert("This is a alert");
}
example();
Insert_Name_Here