-
What is an expression?
An expression is a piece of code that gives an outcome or value. -
What is a binding?
A binding or variable is is an variable that is bound to an expression. -
What is an environment?
A collection of bindings that exist at any given time is called an environment.
4.What is a function?
A function is programming that is wrapped in a value.
- Give an example of a function.
prompt(“Enter passcode”)
6.What is a side effect?
A side effect of a function is when something else is produced in place of a return value.
-
Give an example of a function that produces a side effect and another function that produces a value.
An alert is a good example of a side effect being produced instead of a return value. -
What is control flow?
Execution flows from one part of a program to the next, this is called control flow. -
What is conditional execution?
A condition execution is where some parts of the code are only executed if certain conditions are met. -
What kind of keyword do you need to use to invoke conditional execution?
Loop, If and else.