About Lesson
Arrow Functions
Arrow functions are a shorthand syntax for writing functions. They are particularly useful in callbacks.
Syntax:
JavaScript
const functionName = (parameters) => {
// Code to be executed
};
Example:
JavaScript
const greet = (name) => "Hello " + name;
console.log(greet("Manjeet"));