This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am zekewell on github. | |
* I am zekewell (https://keybase.io/zekewell) on keybase. | |
* I have a public key ASDCfu45gTGVdfzO57I6NDrwHbYLDEs2JNRI8EuTBRhPygo | |
To claim this, I am signing this object: |
This file contains 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
/* | |
The two phases to using functions: First we must ___? Next we can execute (or two other words for executing a function?) a function by? | |
What’s the difference between a function’s parameters and arguments PASSED to a function? | |
What’s the syntax for a NAMED function? | |
How do we assign a function to a variable? | |
Functions can OPTIONALLY take inputs and OPTIONALLY return a single value, how do we specify inputs, and how do we return a value? | |
NOTE: Primitive (simple) values are passed to a function BY COPY, complex by reference. Try it! | |
Scope: Functions can see and modify variables in parent or global scopes. The inverse is NOT true. | |
Closures: Functions form closures around the data they house. If an object returned from the Function and is held in memory somewhere (referenced), that closure stays ALIVE, and data can continue to exist in these closures! (See: our meeting-room app for an example!) (ALSO, see: Understanding JavaScript Closures with Ease) | |
*/ |
This file contains 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
/* | |
Be able to loop any number of times, forward counting up to some limit, backward counting down to 0 | |
Loop over an Array, forwards and backwards | |
Loop over an Object, forwards and backwards ( hint: keys = Object.keys(myObject); ) | |
*/ |
This file contains 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
/* | |
Do you need to branch code? In need of a decision tree | |
*/ |
This file contains 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
/* | |
String Manipulation is how you find characters, words, and do anything else you might want from lots of text. | |
*/ |
This file contains 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
/* | |
Operators: | |
Assignment | |
Arithmetic | |
Comparison | |
Logical | |
Binary (!, typeOf, -) | |
Turnary (a ? b : c) |
This file contains 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
/* | |
Datatypes can be both simple & complex. | |
Take a simple journey through them! | |
*/ | |
// Numbers | |
// String |
This file contains 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
/* | |
* VARIABLES: | |
* | |
* 0. To hold things in memory during the life-cycle of a program, we can use variables. Variables | |
* are named identifiers that can point to values of a particular type, like a Number, String, | |
* Boolean, Array, Object or another data-type. Variables are called so because once created, we | |
* can CHANGE the value (and type of value) to which they point. | |
* | |
* 1. To create a variable we use the keyword, var, followed by a name (id or alias) for our | |
* variable. |