1.What is an expression?
An expression in a programming language is a combination of one or more explicit values,
constants, variables, operators, and functions that the programming language interprets
(according to its particular rules of precedence and of association) and computes to produce
(“to return”, in a stateful environment) another value.
- What is a binding
- Data binding, the technique of connecting two data elements together
- Binding, associating a network socket with a local port number and IP address
- Name binding, the association of code or data with an identifier in a programming language
- What is an environment
it is the collection of variables and their values that exists at a given time.
4.What is a function?
A function is a piece of program wrapped in a value. Generally, this piece of program does
something useful, which can be evoked using the function value that contains it.
- Give an example of a function.
the variable alert, for example, holds a function that shows a little dialog box with a message.
6.What is a side effect?
is said to have a side effect if it modifies some state outside its scope or has an observable
interaction with its calling functions or the outside world besides returning a value
Give an example of a function that produces a side effect and another function that produces a
console.log produces side effect and Math.max produces a value.
What is control flow?
Is the order in which individual statements, instructions or function calls of an imperative program
are executed or evaluated.
9.What is conditional execution?
When we don’t want that some part of a statement(s) in the program is not executed in function of some conditions,
we introduce a conditional execution, if the condition is respected, the statement will be executed,
in other case, the statement will not be executed and the progam continue the execution further
10.What kind of keyword do you need to use to invoke conditional execution?