1. What is an expression?
Expressions are the smallest literal syntax of coding; using values, variables, and operators, which computes to a value. As a programmer 9/10 of your errors will be made here due to typing errors, it’s good to use a program code validator like http://www.jslint.com/ to ensure that you avoid such errors. When expressions are used correctly they will be able to execute and be evaluated by the computer, once this happens they have become statements.
2. What is a binding?
The simplest way to think of binding is associating something that’s easy to remember with something that is not easy to remember, in this way a programer can write code with a narrative that is self-explaining to other programers. The key concept for this attribute of Javascript is that it can be done without having to give thought to the value of the object that is being bound, this makes it much easier to program than other languages without such “human friendly” quality.
3. What is an environment?
In Javascript you will be able to have access to use built in programs called functions which give you information about the computer, that the program is running on. You can also build your own custom set of bindings which will build the environment for your program to run at it’s best.
4. What is a function?
A function is a built in program of the language, Javascript has it’s own set of functions which we install through the bundle and allow us to get information about the computer the program is running on.
5. Give an example of a function.
eval(“x * y”) - Evaluates a string and executes it as if it was script code
6. What is a side effect?
When or statements is executed and it has an affect on changing something in the UI or on the computer itself it is considered to be a “side effect”. This is the main purpose of code is to produce a “side effect” that provides value to the user.
7. Give an example of a function that produces a side effect and another function that produces a value.
eval(“alert(“this is a side effect”);”);
function myFunction() {
var x = 10;
var y = 20;
}
8. What is control flow?
This is the direction of how the Javasript emulator reads your code step by step, in this case it is left to right and down, as we type.
9. What is conditional execution?
When a programer wants to have the code so something only when certain conditions are correct, or not correct. If the person for instance types in an email address but no such address exists, the programmer can code an “if statement” which will verify that the email is correct and if it is not a message can be relayed to the user that the email is incorrect.
10. What kind of keyword do you need to use to invoke conditional execution?
If - the if statement is used for conditional executions