View gist:fc4d0229485cae77b83ff8b7ae385ce4
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
https://repl.it/@jieun/text-normalizer-drill | |
https://repl.it/@jieun/Wiseperson-generator-drill | |
https://repl.it/@jieun/shouter-drill |
View gist:d476637d0f6ffe9303c2233d4be9b83c
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
https://repl.it/@jieun/Is-divisible-drill | |
https://repl.it/@jieun/temperature-conversion-drill | |
https://repl.it/@jieun/area-of-a-rectangle-drill |
View gist:6ea9a629a4b32fc847113cf2df98beaa
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
http://jieun.repl.co/Error-alert-drill/ | |
http://jieun.repl.co/Traffic-lights-drill/ |
View gist:5b0f63b534cde76108c9763f4db4b52c
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
https://repl.it/@jieun/Adding-array-items-drills | |
https://repl.it/@jieun/Accessing-array-items-drill | |
https://repl.it/@jieun/Array-length-and-access-drill |
View Array methods drill
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
https://repl.it/@jieun/Find-drill | |
https://repl.it/@jieun/Filter-drill | |
https://repl.it/@jieun/Sort-drill | |
https://repl.it/@jieun/Squares-with-map-drill | |
https://repl.it/@jieun/Array-copying-II-drill | |
https://repl.it/@jieun/Array-copying-I-drill |
View gist:bd4c6304491debb32c34147147479e28
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
https://courses.thinkful.com/web-dev-001v1/project/2.4.6 | |
https://repl.it/@jieun/average-drill | |
https://repl.it/@jieun/min-and-max-without-sort-drill |
View gist:7f18fb0c20853bd023629bcf7b12dd89
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
What is scope? Your explanation should include the idea of global vs. local scope. | |
Scope is the area in which a variable is available. | |
Local scope is when the variable is defined and used within a specific function. Local scope is re-created | |
each time the function is called. | |
Global scope is when the variable is defined outside of a function. | |
The interpreter follows a scope chain to check the availability of a variable. It will first check local scope; | |
then it will check parent scope; then it will check the global scope. | |
Why are global variables avoided? | |
Use of global variables can make a function indeterminate. This means that a when a function is given the same input |
View Object drills 1
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
https://repl.it/@jieun/Deleting-keys-drill | |
https://repl.it/@jieun/Self-reference-drill | |
https://repl.it/@jieun/Object-creator-drill | |
https://repl.it/@jieun/Object-updater-drill |
View Object drills 2
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
https://repl.it/@jieun/validate-object-keys-drill | |
https://repl.it/@jieun/find-by-id-drill | |
https://repl.it/@jieun/Enroll-in-summer-school-drill | |
https://repl.it/@jieun/Make-student-reports-drill-1 |
View gist:611089050e21047f3a552cbe458918f1
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
function getTokens(rawString) { | |
// NB: `.filter(Boolean)` removes any falsy items from an array | |
return rawString.toLowerCase().split(/[ ,!.";:-]+/).filter(Boolean).sort(); | |
//all capitalized letters are turned into lower case letters in the raw string. | |
//that all lower case string is then being split where punctuation marks are found. | |
//falsy items are removed. | |
//the string is then sorted alphabetically and is the return value of the getTokens function call. | |
} |
OlderNewer