JavaScript Functions

- Functions are one of the core building blocks in JavaScript. They allow you to encapsulate code that can be reused.
- Functions can take parameters and return values, and understanding their scope is crucial to writing effective JavaScript code.

function myFunction() {
// code to be executed
}

const myFunction = function() {
// code to be executed
}

const myFunction = () => {
// code to be executed
}