Functions

What are functions ?

These are stepwise instructions written inside a code block as a whole, to make recurring and control flow easier because writing each step for every problem is a lengthy and time wasting process, thats where functions are used.

let length = 10;
let breadth = 20;

let area = length * breadth;
console.log(area);
// Output: 200

Last updated