Arrow Function in JavaScript: A Simpler Way to Write Functions
An arrow function in JavaScript is a concise way to write function expressions using the => syntax.
Basic Syntax
const functionName = () => { // code here };
Simple Example
const greet = () => {
pranjaljaiswal.hashnode.dev3 min read