Plenty of π
Module 5: Functions
Quiz: Quiz 5: Functions

1. How do you declare a basic function in JavaScript?

2. What is a "parameter" in the context of a function?

3. What does a function return by default if it does not have an explicit `return` statement or `return;`?

4. What is the key characteristic of an arrow function `() => ...` compared to a traditional function expression regarding the `this` keyword?

5. What is a callback function?

6. What is the primary purpose of a "base case" in a recursive function?

7. Which timing function is used to execute a piece of code repeatedly at a specified interval?

8. Which syntax is used for an arrow function that takes no parameters and implicitly returns the string "Hello"?

9. What is the value of `x` after the following code? `function test() { let x = 10; } test();`