-
What is an expression?
It is a piece of code that originates a value. -
What is a binding?
A binding is a name we can create that can grasp and hold a value. We can then use that name in expressions to refer to that value. It stands in the memory, so it can be used later, but it can be changed to refer to a different value or no value at all. -
What is an environment?
An environment is the collection of bindings and their attributed values that exist at any given time. -
What is a function?
A function is nothing more than a program. We can have a binding attached to it and call it by using that binding. -
Give an example of a function.
alert(âHello, World!â); -
What is a side effect?
A side effect is the result of an expression that changes the visible environment like writing text to the screen or prompting a dialog box. -
Give an example of a function that produces a side effect and another function that produces a value.
prompt(âNameâ);
console.log(1+1);
-
What is control flow?
It is the order by which the statements are read and executed. -
What is conditional execution?
Means that the program will execute one branch of statements instead of another based on which conditions are met during the programâs execution. -
What kind of keyword do you need to use to invoke conditional execution?
-if
-else if
-else