[quote=“ivan, post:1, topic:3069, full:true”]
Welcome to the discussion about the reading assignment about Binding, Functions and Control Flow.
Leave your answers to the questions below in this thread. If you have any questions or you want to discuss something connected to the assignment feel free to do it in this thread as well, but please everything to the topic.
-
What is an expression?
An expression is a fragment/piece of code that produces a value. -
What is a binding?
Binding catches and holds values. They can be used to file pieces of data under a name, and they are useful for tracking state in your program. -
What is an environment?
An environment is the collection of bindings and their values that exist at a given time. -
What is a function?
A function is a piece of program wrapped in a value. Such value can be applied in order to run the wrapped program. -
Give an example of a function.
The console.log function. -
What is a side effect?
A side effect is any application state change that is observable outside the called function other than its return value. -
Give an example of a function that produces a side effect and another function that produces a value.
Side effect function: makeNoice; value function: console.log, square. -
What is control flow?
Cost flow is the order in which statements are executed in a program. -
What is conditional execution?
Condition execution/statement is used to decide the flow of execution based on different conditions. -
What kind of keyword do you need to use to invoke conditional execution?
The if keyword.