1: A fragment of code that produces a value is called an expression. Every value
that is written literally (such as 22 or “psychoanalysis”) is an expression. An
expression between parentheses is also an expression, as is a binary operator
applied to two expressions or a unary operator applied to one.
2: A binding is a value or string that is set to a variable. You can store something and create a link that you can use in expressions.
3: The collection of bindings and their values that exist at a given time is called
the environment.
4: A function is a piece of program wrapped in a value.
5: prompt(""); alert("");
6: If the programs changes something in the browser, like showing a dialog box, writhing text to the screen,… that is a side effect by the program.
7: prompt(""); alert(""); var a = 1
var a = 1
var b = 2
console.log(a+b);
3
prompt(" type in password ");
8: Control flow is the order in wich the program is written. top to bottom, left to right.
9: If the program has diffirent branches, where the program has to take the proper branch depending on the situation at hand.
10: “if” / “else” .