declaring a function code example
Example 1: how to make a function
function myFunction(){
console.log('hi')
}
myFunction()
Example 2: The syntax to declare a function is:
returnType functionName (parameter1, parameter2,...) {
// function body
}