How do we write our own functions? →
function foo() {
console.log("FOO!");
}
How do we create a function that has parameters or inputs? →
function foo(s) {
console.log(s + "!");
}
How do we create a function that gives back values? →
// use the keyword, return
function foo(s) {
return s + "!";
}
console.log(foo("hi"));