1. What is an expression?
A fragment of code that produces a value.
2. What is a binding?
Bindings are used to catch and hold values in JS.
3. What is an environment?
A collection of bindings and their values that exist at a given time is called the environment.
4. What is a function?
A function is a piece of program wrapped in a value.
5. Give an example of a function.
The binding prompt holds a function that shows a little dialog box asking for user input.
6. What is a side effect?
A side effect is any application state change that is observable outside the called function other than its return value.
7. Give an example of a function that produces a side effect and another function that produces a value.
- PROMPT function produces a side effect.
- SUM function produces a value.
8. What is control flow?
The control flow is the order in which the computer executes statements in a script.
9. What is conditional execution?
When we create a branching road, where the program takes the proper branch based on the situation at hand it is called conditional execution.
10. What kind of keyword do you need to use to invoke conditional execution?
The if keyword.