This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VOCAB LIST - Chapter 4 | |
/**/ | |
// Code Examples: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VOCAB LIST - Chapter 3 | |
/* | |
function: A function is created with an expression that starts with the keyword function. Functions have a set of parameters (in this case, only x) and a body, which contains the statements that are to be executed when the function is called. The function body of a function created this way must always be wrapped in braces, even when it consists of only a single statement. | |
return statement: A return statement determines the value the function returns (A return keyword without an expression after it will cause the function to return undefined) | |
Parameters to a function: behave like regular bindings, but their initial values are given by the caller of the function, not the code in the function itself | |
scope: Each binding has a scope, which is the part of the program in which the binding is visible |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VOCAB LIST - Chapter 2 | |
/* | |
expression: A fragment of code that produces a value. | |
side effects: changes the internal state of the "machine" in a way that will affect the statements that come after it | |
binding, or variable: to catch and hold values. After a binding has been defined, its name can be used as an expression. The value of such an expression is the value the binding currently holds. | |
keywords/reserved words: words with a special meaning, such as let, are keywords, and they may not be used as binding names. There are also a number of words that are “reserved for use” in future versions of JavaScript, which also can’t be used as binding names. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VOCAB LIST | |
/* | |
Programming: is the act of constructing a program—a set of precise instructions telling a computer what to do. | |
Programming Language: is an artificially constructed language used to instruct computers. | |
Best Practices: a composed set of rules, prescribing the form programs should have. | |
Vanilla JavaScript: what comes with JS - "out of the box". |