What is a JavaScript function?
A block of code designed to perform a specific task.
Why do we use functions?
To keep code clean, organized and reusable.
Which keyword is used to define a function?
function
When does a function run?
When it is called.
What is a parameter?
A variable that receives values inside a function.
What happens if a function does not have parameters?
It still works normally.
Why do we use “return” in a function?
To send a value back for later use.
What example is used to demonstrate how functions work?
A function that calculates an area of a rectangle.
Arguments are the values we send when we execute a function. (true or false)
True
Functions always show results on the screen & cannot store? (true or false)
False