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 Drill #1: https://jsbin.com/vowugat/2/edit?js,console | |
String Drill #2: https://jsbin.com/zulaco/edit?js,console | |
String Drill #3: https://jsbin.com/wogavaj/edit?js,console |
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
Number Drills: | |
Area of Rectangle: https://jsbin.com/rolikes/edit?js,console | |
Temperature Conversion: https://jsbin.com/niqikoz/edit?js,console | |
Is Divisible: https://jsbin.com/kopaxon/edit?js,console | |
- Used if else statement, but haven't covered that yet. is there another solution? |
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
Logic Drills: | |
Traffic Lights: https://jsbin.com/tuzupog/edit?js,console,output | |
Error Alert: https://jsbin.com/nujugu/edit?js,console,output |
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
Array Drills: | |
1. Creating Arrays: https://jsbin.com/bebojeg/edit?js,console | |
2. Adding Array Items: https://jsbin.com/basewew/edit?js,console | |
3. Accessing Array Items: https://jsbin.com/kusubi/edit?js,console | |
4. Array Length and Access: https://jsbin.com/xukixo/edit?js,console |
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
min and max (without sort): https://jsbin.com/rovanaf/edit?js,console - Close, but not quite! | |
Compute the Average: https://jsbin.com/zesixi/edit?js,console - Took awhile, but got it! | |
FizzBuzz: https://jsbin.com/vahexah/edit?js,console - Didn't have divisible by 5 AND 3 first in the if statement. |
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
Object Creator: https://jsbin.com/wubojod/edit?js,console | |
Object Updater: https://jsbin.com/joxofu/edit?js,console | |
Self Reference: https://jsbin.com/xabixez/edit?js,console | |
Deleting Keys: https://jsbin.com/fagidiz/edit?js,console - Why does it log the key/values to the console in alphabetical order by key, | |
instead of the order in which they were listed in the code? | |
- Side effect? |
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
First Answer, without reviewing the Lessons or using Google: | |
1. What is scope? Your explanation should include the idea of global vs. local scope. | |
- Scope is where a variable or set of variables are defined and contained. Global scope sets a variable for the entire codebase. Local | |
scope is contained within the fxn where it is used. Also it's much better than Listerine. | |
2. Why are global variables avoided? | |
- If you're bringing in third-party libraries, such as jQuery, using an API, or merging with someone else's code, it can/will cause |
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
Make Student Reports: https://jsbin.com/rapugej/edit?js,console | |
Enroll in Summer School: https://jsbin.com/wogohec/2/edit?js,output | |
Find by ID: https://jsbin.com/pexeciz/edit?js,console | |
Validate Object Keys: https://jsbin.com/nejiqef/2/edit?js,output | |
Todo List Factory: |
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
getTokens fxn: | |
1. Gets passed in a string. | |
2. The string then: | |
- gets converted to all lowercase letters. | |
- gets split into an array of strings of each individual word. A regular expression is used to split the string at a space, a comma, | |
an exclamation point, a period, a quotation mark, a semicolon, a colon, or a dash. | |
- has any "falsy" items removed from the array. | |
- gets alphabetically sorted. | |
3. An array of alphabetically sorted strings is returned. Each string contains a single word. |
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
Cat Carousel: https://jsbin.com/sumejo/edit?html,js,output | |
2nd attempt: https://jsbin.com/daseroy/edit?html,js,output | |
Return of Fizzbuzz: https://jsbin.com/nanojo/edit?html,js,output - doesn't work, not close, but are you kidding me? I was supposed to | |
come up with THAT solution?! | |
Lightbulb Toggle: https://jsbin.com/fefiter/edit?html,css,js,output |
OlderNewer