What are functions in JavaScript?
Functions are blocks of reusable code that perform a specific task.
Example:
function greet(name) {
return `Hello, ${name}`;
Functions are blocks of reusable code that perform a specific task.
Example:
function greet(name) {
return `Hello, ${name}`;