...

/

Functions

Functions

What are basically Functions? We take a real life example to explain this. For example on any website where you register, it validates your important information e.g. E-mail, Username or Password, before the process of registration is completed. So there must be a piece of code associated with the validation process. This piece of code can be required to be used repetitively some where else also. So this piece of code is defined in a Function, so that it can be invoked where required.

Thus to conclude Functions are a piece of code, that need to be utilized repetitively, so we define them only once and use them as many times as we want.

A Function is defined as follows  by the pseudo-code

Access this course and 1400+ top-rated courses and projects.