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
A search engine to quickly and easily find where a specific movie or tv show can be streamed / viewed | |
and relevant information on those available sources, using the Guidebox API. | |
https://api.guidebox.com/docs |
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
Wiseperson | |
https://repl.it/G8oY/113 | |
Shouter | |
https://repl.it/G8sD/94 | |
normalizer | |
https://repl.it/G8sU/54 | |
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
Area | |
https://repl.it/G9Do/44 | |
Temp | |
https://repl.it/G9EI/59 | |
Divisible | |
https://repl.it/G9Ec/55 | |
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
traffic lights | |
https://repl.it/Ggbk/100 | |
errors | |
https://repl.it/Ggcp/124 |
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
create array | |
https://repl.it/G9GB/79 | |
adding item to array | |
https://repl.it/G9GI/69 | |
accessing array items | |
https://repl.it/G9GO/68 | |
length/access |
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/max | |
https://repl.it/G9KJ/112 | |
average | |
https://repl.it/G9KO/85 | |
Fizzbuzz | |
https://repl.it/G9KW/137 |
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? (global / local) | |
Essentially, scope is about the different perspectives for different places in code, i.e. what variables and associated values other functions and variables can "see" or access. Global scope encompases the entirety of source code and even spans across files given the suffienct linking of such files. A variable defined in the global scope will be able to be accessed by anywhere else in the code, including inside functions and other files. Local scope refers to the perspective from inside a function, nested function, or bracketed area of code. Any variables declared inside of a function or nested function are not necessarily accessible in other functions. The scope chain comes into play here. Global scope is at the very top and local scopes exist below it. Variables can only be accessed in a desceding manner in regards to the chain. A variable declared inside a function locally, will not be able to be accessed from places outside of the function, or up the scope chain, but areas |
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
creator | |
https://repl.it/G9Lb/84 | |
updater | |
https://repl.it/G9Lf/71 | |
self-reference | |
https://repl.it/G9Lj/70 | |
deleting keys |
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
student report | |
https://repl.it/G9NG/106 | |
enroll in school | |
https://repl.it/G9N6/81 | |
find by id | |
https://repl.it/G9OF/57 | |
validate object keys |
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(); // returns an array of words in the string using all multiples of white space and punctuation as the delimeter, removing any falsy values from array and finally sorting the array members alphabetically | |
} | |
function mostFrequentWord(text) { | |
var words = getTokens(text); // parses string into array, filtering out any white space or punctuation | |
var wordFrequencies = {}; // creates an object to store unique words and their frequencies | |
for (var i = 0; i <= words.length; i++) { // loops through all words in parsed string array |