create a function code example
Example 1: how to make a function
function myFunction(){
console.log('hi')
}
myFunction()
Example 2: basic function example
function myFunction(a, b) {
return a * b;
}
function myFunction(){
console.log('hi')
}
myFunction()
function myFunction(a, b) {
return a * b;
}