This Lesson is for subscribers

Takeaways:
- A JavaScript function is a block of code that will be executed when you call it
- A JavaScript function is written as a code block inside curly { } braces, preceded by the function keyword
- A JavaScript function can take zero or more arguments or parameters
- An anonymous JavaScript function is a JavaScript function that has not been given a name
- Anonymous JavaScript functions are commonly used when the function is used immediately after being defined
- JavaScript functions are first-class objects in JavaScript so you can assign a function to a JavaScript variable
- Because JavaScript functions can be assigned to variables, it means you can pass functions as parameters or arguments to other functions
Resources: