Skip to content

Instantly share code, notes, and snippets.

View thebinarypenguin's full-sized avatar

Ethan Zimmerman thebinarypenguin

View GitHub Profile
https://repl.it/@thebinarypengui/Creating-arrays-drill
https://repl.it/@thebinarypengui/Adding-array-items-drills
https://repl.it/@thebinarypengui/Accessing-array-items-drill
https://repl.it/@thebinarypengui/Array-length-and-access-drill
https://repl.it/@thebinarypengui/Array-copying-I-drill
https://repl.it/@thebinarypengui/Array-copying-II-drill
https://repl.it/@thebinarypengui/Squares-with-map-drill
https://repl.it/@thebinarypengui/Sort-drill
https://repl.it/@thebinarypengui/Filter-drill
https://repl.it/@thebinarypengui/Find-drill
https://repl.it/@thebinarypengui/min-and-max-without-sort-drill
https://repl.it/@thebinarypengui/average-drill
https://repl.it/@thebinarypengui/fizzbuzz-drill-js
What is scope? Your explanation should include the idea of global vs. local scope.
Scope is the area in which a variable is accessible. Variables declared at
the top level of an application have global scope and are accessible by all
code. While variables declared inside a function have local scope and are only
accessible by the code in that function.
Why are global variables avoided?
A global variable is essentially a variable that is shared among all the code
https://repl.it/@thebinarypengui/Object-creator-drill
https://repl.it/@thebinarypengui/Object-updater-drill
https://repl.it/@thebinarypengui/Self-reference-drill
https://repl.it/@thebinarypengui/Deleting-keys-drill
https://repl.it/@thebinarypengui/Make-student-reports-drill
https://repl.it/@thebinarypengui/Enroll-in-summer-school-drill
https://repl.it/@thebinarypengui/find-by-id-drill
https://repl.it/@thebinarypengui/validate-object-keys-drill
getTokens
1. convert string to lower case
2. split string into array (of words) along word boundaries
3. remove any empty strings
4. sort the array of words alphabetically
mostFrequentWord
1. call getTokens to convert text into an array of sorted words
2. loop over the words array, building up a frequency distribution object
3. loop over the frequency distribution object, looking for the word with the highest frequency
What do you already know about your communication style and skills?
I consider myself a good verbal communicator, but writing is not my strongest
suit.
What did you learn while reading this?
I learned about the Amygdala Hijack and how the emotional part of your brain
gets "first dibs" on incoming stimuli.
https://repl.it/@thebinarypengui/Cat-carousel-jQuery
https://repl.it/@thebinarypengui/return-of-fizz-buzz
@thebinarypenguin
thebinarypenguin / gist:8be5e9f64a9272557f676193a46a5a39
Created January 20, 2019 01:38
Thinkful Assignment: jQuery Questions
This assignment is to list questions I have about jQuery. However I don't have
any questions, so I will explain what jQuery is.
jQuery has 2 main features
1. Makes DOM manipulation easier
2. Makes AJAX requests easier
DOM manipulation can be done with vanilla javascript but it's much more
difficult. When jQuery was created web browsers were much more inconsistent
than they are now. In order to get some DOM manipulation code to work you often