function

C - Functions

Functions in C

Functions in C : A function is a self-contained block of statements that perform a coherent task of some kind. Every C program can be thought of as a collection of these functions. As we noted earlier, using a function is something like hiring a person to do a specific job for you. Sometimes the …

Functions in C Read More »

function in javascript

JavaScript Function

A JavaScript Function is a block of code designed to perform a particular task. The main advantages of using JavaScript Function : Code reuse: Define the code once, and use it many times. Use the same code many times with different arguments, to produce different results. JavaScript Function Example Let’s see the simple example of …

JavaScript Function Read More »