Q1.What is an expression?
A1. An expression is a fragment of a code that produces a value. Expressions can be layered with other expressions making larger expressions.
Q2. What is binding?
A2. A binding is a value or string set t a variable, it helps to make bindings, so you don’t have to write out the same expression multiple times in the program.
Q3.What is an environment?
A3. An environment is all of the bindings that have been made within a program.
Q4. What is a function?
A4. A function is a section of the program that performs a specific task. It can then be called upon for use in other expressions
Q5. Give an example of a functio.
A5. - ALERT(“THis message will self destruct”);
Q6. What is a side effect?
A6. A side effect is an observable change in the state of the application.
Q7. Give an example of a function that produces a side effect and another function that produces a value.
A7. alert(“alert is a function that produces a side effect”) console.log(2+4); produces a value
Q8. WHat is control flow?
A8. The order of executing code from top to bottom, left to right.
Q9. WHat is conditional executio?
A9. WHen using a logical operator to determine wheter or not to execute certain parts of the code.
Q10.WHat kind of keyword do you need to use to invoke conditional execution?
a10. - If it is the keyword to invoke conditional execution.