Functions
Functions allow us to execute some action or actions and they are able to be used in a repeated fashion.
They are the lifeblood of your program, but they must be called!
and they are used everywhere! Go to any site, and functions are firing. In the example below, we are trying to create a function that when called, will
say "Hello, my name is Tom McClellan."
So first, we named our function, then entered our perameters that we have defined as Tom and McClellen. Then,
when we call our function, it should introduce itself.
function firstLast(first, last){
let fullName = first + ' ' + last;
console.log(`Hello, my name is ${fullName}.`);
}
firstLast('tom' , 'mcclellan');
firstLast('allie' , 'walker');