A simple example of hosting with a function declaration
// function has been hoisted to top of enclosing scope
function sayHello() {
console.log('Hello, world!');
}
sayHello(); // logs 'Hello, world!'
sayHello(); // logs 'Hello, world!'
function sayHello() {
console.log('Hello, world!');
}