Skip to content

Instantly share code, notes, and snippets.

View lucasjlatour's full-sized avatar

Lucas La Tour lucasjlatour

View GitHub Profile
@lucasjlatour
lucasjlatour / example.code-workspace
Created August 30, 2020 15:03 — forked from uchilaka/example.code-workspace
Workspace / Settings examples for VSCode IDE
{
"folders": [
{
"name": "Health Worker Logger",
"path": ".",
}
],
"extensions": {
"recommendations": [
"msjsdiag.debugger-for-chrome",
//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
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
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.
https://repl.it/@lucaslatour/min-and-max-without-sort-drill
https://repl.it/@lucaslatour/average-drill
https://repl.it/@lucaslatour/fizzbuzz-drill-js
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
https://repl.it/@lucaslatour/Traffic-lights-drill
https://repl.it/@lucaslatour/Error-alert-drill-1
https://repl.it/@lucaslatour/Traffic-lights-drill
https://repl.it/@lucaslatour/Error-alert-drill-1
https://repl.it/@lucaslatour/area-of-a-rectangle-drill
https://repl.it/@lucaslatour/temperature-conversion-drill
https://repl.it/@lucaslatour/Is-divisible-drill
https://repl.it/@lucaslatour/Wiseperson-generator-drill
https://repl.it/@lucaslatour/shouter-drill
https://repl.it/@lucaslatour/text-normalizer-drill