Function Declaration

There are a few ways to declare a function in JavaScript. They generally achieve the same result hovewer have slight differences in use.

Function Declaration is the classic way to declare a function.

function explorer(cat) {
  return `${cat} in space!`
}