In JavaScript, a function is not a “magical language structure”, but a special kind of value. The syntax that we used before is called a Function Declaration:

function sayHi() {
  console.log( "Hello" );
}