what is function ?
Function are fundamental in all programming language.funtions are reusable code blocks designed to particular task.Instead of writing the same code again and again, you can define it once and call it whenever needed.
Why use Functions ?
code wrrite once run many times.Easy to code make to read and maintain.
Structure of function
A function can be created with the keyword,name and parentheses..The code that needs to be executed written inside the curly brackets.To run a function using call it's name,keyword.
Example:

keyword,name name()
output inside the curly brackets (abcd)
call name()
Top comments (0)