Function in JavaScript
Why we use function?
The main objective of function is to avoid the repeatation of code.
Example: If we have to perform different operations on two variables we write code as follows:
let a=25
let b=5
console.log(a + b)
console.log(a - b)
console.log...
vasudhawankhade.hashnode.dev3 min read