Function Declaration
Take a look at the syntax below:
function
keyword is used to declare a function which is followed by a function name with parenthesesfunctionName()
than we can put in multiple instructions inside the block
In the last line we call the declared function by its function name
functionName()
Some other examples:
Last updated