Skip to content

Instantly share code, notes, and snippets.

View csierra15's full-sized avatar

Carly Sierra csierra15

View GitHub Profile
@csierra15
csierra15 / Shouter
Created August 30, 2017 01:17
String Drills
https://repl.it/G8sD/749
@csierra15
csierra15 / Replit Solutions
Created August 30, 2017 18:12
Number Drills
https://repl.it/G9EI/492
https://repl.it/G9Do/424
https://repl.it/G9Ec/460
https://repl.it/Ggbk/842
https://repl.it/Ggcp/678
@csierra15
csierra15 / Replits
Created August 31, 2017 19:06
Carly Array Basic Drills
creating arrays https://repl.it/G9GB/662
adding array items https://repl.it/G9GI/670
accessing array items https://repl.it/G9GO/474
array length and access https://repl.it/G9GS/554
@csierra15
csierra15 / Carly replit files
Created August 31, 2017 21:28
Array Drills
copying I https://repl.it/G9GV/691
copying II https://repl.it/G9G7/964
squares w/ map https://repl.it/G9HI/667
sort https://repl.it/G9H5/521
filter https://repl.it/G9Hd/517
find https://repl.it/G9Hl/430
@csierra15
csierra15 / Carly replits
Created August 31, 2017 22:48
Array Loop Drills
max/min https://repl.it/G9KJ/1025
compute the average https://repl.it/G9KO/701
fizzbuzz https://repl.it/G9KW/1058
What is scope?
Variable Scope
-Defines how a declared variable can or can not be accessed at different points in the code
-Global variable is accessible everywhere in the code, and is declared outside of a function.
-Block scope refers to how a variable is defined within a function and is only accessible within its function’s instructions.
-Global = outside a function;
Object Creator https://repl.it/G9Lb/638
Object Updater https://repl.it/G9Lf/497
Self Reference https://repl.it/G9Lj/589
Deleting Keys https://repl.it/G9Lo/389
student reports https://repl.it/G9NG/1015
summer school https://repl.it/G9N6/823
find by id https://repl.it/G9OF/676
https://repl.it/G9OV/1082
@csierra15
csierra15 / gist:4bd4581f873e266cb4103f0a245ad648
Created September 6, 2017 01:03
Word Frequency Challenge
-Function getTokens takes a single argument (rawString).
getTokens should return rawString to lower case letters, split after certain characters INTO a new array,
removed of any false items, and sorted into order (alphabetical).
-Function mostFrequentWord takes single argument (text).
This function holds a loop that searches through the (text) for the frequency of the words used.
wordFrequencies creates an Order of the words and the number of times it has appeared.
The loop starts at the first word in the getToken array, and counts the frequency of the word.
If the word has not yet appeared, it is added to the Order.