Skip to content

Instantly share code, notes, and snippets.

AlexVarghese25

Block or report user

Report or block AlexVarghese25

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Questions about jQuery
What is jQuery for? helps you traverse and manipulate web apps
How do you get access to all mulitiple elements? Using $() command
What is DOM? Documentation object model
View most frequent word analyzer
get tokens tokenizes the string
loop through each word and if this is the first time seeing it make the counter for it 1, otherwise increment the counter by 1
loop through the word freq array and save the word that has the highest freq
output word with highest freq
View Object Drills 2
https://repl.it/@AlexVarghese/Make-student-reports-drill
https://repl.it/@AlexVarghese/Enroll-in-summer-school-drill
https://repl.it/@AlexVarghese/find-by-id-drill
https://repl.it/@AlexVarghese/validate-object-keys-drill
View Object Drills 1
https://repl.it/@AlexVarghese/Object-creator-drill
https://repl.it/@AlexVarghese/Object-updater-drill
https://repl.it/@AlexVarghese/Self-reference-drill
https://repl.it/@AlexVarghese/Deleting-keys-drill
View Scope vs global variables
1. Scope is a term that allows to know where certain variables can be used. If the scope of variable is global it can be used anywhere
in your code. If the scope of the variable is block it can only be used in the block it was created.
2.Global Variables are avoided since they can cause unintended consequences/side effects.
3.JavaScript's strict mode makes sure that global variables can't be used.
4. A side effect is when a function affects things outside its own scope and changes the values in a completely different block/scope.
A pure function is one that doesnt have any side effects and it is determinate.
View Arrays and Loops Drills
https://repl.it/@AlexVarghese/min-and-max-without-sort-drill
https://repl.it/@AlexVarghese/average-drill
https://repl.it/@AlexVarghese/fizzbuzz-drill-js
View Array Method Drills
https://repl.it/@AlexVarghese/Array-copying-I-drill
https://repl.it/@AlexVarghese/Array-copying-II-drill
https://repl.it/@AlexVarghese/Squares-with-map-drill
https://repl.it/@AlexVarghese/Filter-drill
https://repl.it/@AlexVarghese/Find-drill
View Array Basics
https://repl.it/@AlexVarghese/Creating-arrays-drill
https://repl.it/@AlexVarghese/Adding-array-items-drills
https://repl.it/@AlexVarghese/Accessing-array-items-drill
https://repl.it/@AlexVarghese/Array-length-and-access-drill
View Logic Drills
https://repl.it/@AlexVarghese/Traffic-lights-drill
https://repl.it/@AlexVarghese/Error-alert-drill
View Number Drills
https://repl.it/@AlexVarghese/area-of-a-rectangle-drill
https://repl.it/@AlexVarghese/temperature-conversion-drill
https://repl.it/@AlexVarghese/Is-divisible-drill
You can’t perform that action at this time.