javascript functions:
Function Declaration: You can define a function using the function keyword. Parameters are optional, and the code inside the curly…
Function Declaration: You can define a function using the function keyword. Parameters are optional, and the code inside the curly…