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
Show hidden characters
{ | |
"folders": [ | |
{ | |
"name": "Health Worker Logger", | |
"path": ".", | |
} | |
], | |
"extensions": { | |
"recommendations": [ | |
"msjsdiag.debugger-for-chrome", |
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
//this function seems to split up words, make them all lowercase, remove all non words, and then return them in an array. It also sorts them in alphabetical order | |
function getTokens(rawString) { | |
// NB: `.filter(Boolean)` removes any falsy items from an array | |
return rawString.toLowerCase().split(/[ ,!.";:-]+/).filter(Boolean).sort(); | |
} | |
function mostFrequentWord(text) { // declares function |
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/@lucaslatour/Object-creator-drill | |
https://repl.it/@lucaslatour/Object-updater-drill | |
https://repl.it/@lucaslatour/Self-reference-drill | |
https://repl.it/@lucaslatour/Deleting-keys-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
Scope is a set of rules that determine how widely accesible a variable is in a program. By accessible I mean that a variable's | |
value could be used or changed. | |
Block scope determines that a variable is only accessible within a block. Global scope is when a variable is accesible through out a program. | |
Global can also sometimes be accessed in different files. | |
Global variables are avoided because they can cause code to become indeterminate (having different results under different conditions) | |
which leads to errors and code that is hard to debug. | |
Strict mode requires that every declared variable in a program must use the keywords "let" or "const" in their declaration. |
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/@lucaslatour/min-and-max-without-sort-drill | |
https://repl.it/@lucaslatour/average-drill | |
https://repl.it/@lucaslatour/fizzbuzz-drill-js |
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/@lucaslatour/Creating-arrays-drill-1 | |
https://repl.it/@lucaslatour/Adding-array-items-drills-1 | |
https://repl.it/@lucaslatour/Accessing-array-items-drill-1 | |
https://repl.it/@lucaslatour/Array-length-and-access-drill-1 | |
https://repl.it/@lucaslatour/Array-copying-I-drill-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/@lucaslatour/Traffic-lights-drill | |
https://repl.it/@lucaslatour/Error-alert-drill-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/@lucaslatour/Traffic-lights-drill | |
https://repl.it/@lucaslatour/Error-alert-drill-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/@lucaslatour/area-of-a-rectangle-drill | |
https://repl.it/@lucaslatour/temperature-conversion-drill | |
https://repl.it/@lucaslatour/Is-divisible-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/@lucaslatour/Wiseperson-generator-drill | |
https://repl.it/@lucaslatour/shouter-drill | |
https://repl.it/@lucaslatour/text-normalizer-drill |
NewerOlder