Sample of function
2026 - April - 04 Function In JavaScript, a function is a block of code designed to perform a specific task. funtion code one time write use it many times. 1. Function Declaration 2. Function Expre...

Source: DEV Community
2026 - April - 04 Function In JavaScript, a function is a block of code designed to perform a specific task. funtion code one time write use it many times. 1. Function Declaration 2. Function Expression 3. Arrow Function ** More than one line code** Types of function Function Declaration Function Expression Arrow Function Anonymous Function Named Function Callback Function IIFE (Immediately Invoked Function Expression) Recursive Function Higher-Order Function Constructor Function Generator Function Async Function Method (Function inside object) One-line Arrow Function 4 to 14 (to be discuss )