cara menambahkan fungsi dalam javascript

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