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
/* | |
* CONTROL FLOW: | |
* | |
* 0. Control flow is the idea of making decisions in code through the careful | |
* use of booleans. We can ask our code a question and how a course of action | |
* laidout for the 2-3 possible answers given such a situation. | |
* My tools of choice for control flow are if, elseif, else statements. | |
* In each statement it boils down to which statement will come true? So that | |
* the code linked to the statement may run. Again I'll be sharing examples | |
* of some of my work I've completed related to the study. |
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
/* | |
* FUNCTIONS: | |
* | |
* Now for a more in-depth study into Javascript functions! We'll start off | |
* be naming the two phases of using functions. If this two phases talk sounds familiar | |
* that's because it is variables, our first study also has to phases of use. | |
* For functions those two phases are declaration, the process of creating the function, | |
* and invocation, the process of calling or actually using the function. Now, I'll share | |
* with you the difference between a function's parameters and arguments. | |
* The parameters of a function are the required inputs decided at the time of |
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
/* | |
* CONTROL FLOW: | |
* | |
* 0. Control flow is the idea of making decisions in code through the careful | |
* use of booleans. We can ask our code a question and how a course of action | |
* laidout for the 2-3 possible answers given such a situation. | |
* My tools of choice for control flow are if, elseif, else statements. | |
* In each statement it boils down to which statement will come true? So that | |
* the code linked to the statement may run. Again I'll be sharing examples | |
* of some of my work I've completed related to the study. |
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
/* | |
* LOOPS: | |
* | |
* 0. Loops are features of Javascript that allow us to execute a block of code | |
* without calling it multiple times. We can run these loops as many times as we need. | |
* Loops are commonly used to pull or search for data in a data collection | |
* like a object or array. For loops are great for arrays! For in loops are great | |
* for objects. And I'm sure someone, somewhere uses while loops in Javascript. | |
*/ |
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: | |
* | |
* 0. There is a number of ways to manipulate strings in Javascript! To help | |
* show you a few I'll be showing examples of functions I've made that showcase | |
* string manipulation. One thing to note is that strings can be treated like an | |
* for the purpose bracket notation and using the property .length. | |
* Concatenation is another useful way to manipulate strings. | |
* By using the addition operator you can combine/concatenate strings. | |
*/ |
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: | |
* | |
* 0. Operators in Javascript are what we use to pass actions, assign, add, subtract, multiply, | |
* divide, compare, and even more to our data. I'll be giving an overview of 6 types of operators. | |
* Each of the six operators differ from one another by what they do and how many operands they | |
* require. In Javascript operands are the values the operators are passing actions onto. | |
* Our operators are assignment, arithmetic, comparison, logical, binary, and turnary. | |
*/ |
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: | |
* | |
* 0. A datatype in Javascript is a type of value. There are two categories of these types of values | |
* in Javascript. One is Simple/Primitive and the other is Complex. Simple datatypes consist of | |
* numbers, strings, booleans, NaN, undefined, and null. Complex datatypes consist of objects, | |
* arrays, and functions. | |
*/ | |
//1. Number// |
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. |