– A function is a block of code with name, meant to perform a specific task.
– Whenever we want to perform a specific task, we create a function.
Creating a function:
– A function is created or defined with the help of function keyword.
Syntax: /* function definition */
function functionName( [param1,param2, …. paramN] )
statement(s) to be executed;
– A function without parameters, without returning value.
Take the opportunity to connect and share this video with your friends and family if you find it useful.