Instantly share code, notes, and snippets.

View Assignment 1
Visit the YouTube API documentation discussed above and find the subscription list endpoint documentation. List 1 required parameter and 2 optional parameters for this endpoint. For each parameter listed, state the data type and give an example of the allowed values.
Required
part
data type: string
ex: snippet
optional #1
maxResults
data type: unsigned integer
View Analogy
1. Write an analogy to describe the relationship between clients and servers.
Answer
The client and server relationship is similar to ordering food when you’re at a restaurant.
You have a feeling for what kind of food you would like, but you don’t know its exact name.
So first you look through the menu to find the name (address) of the item you would like.
Then you place the order for the food you would like.
The waiter brings you the food. However he doesn’t bring the entire order at first.
View JQuery
https://repl.it/@richardek2638/Jquery-Need-helprichard
https://repl.it/@richardek2638/return-of-fizz-buzzHelprichard
View Object and Array Drills
https://repl.it/@richardek2638/Make-student-reports-drillrichard
https://repl.it/@richardek2638/Enroll-in-summer-school-drillrichard
https://repl.it/@richardek2638/find-by-id-drillrichard
https://repl.it/@richardek2638/validate-object-keys-drillrichard
View Objects
https://repl.it/@richardek2638/Object-creator-drillrichard
https://repl.it/@richardek2638/Object-updater-drillrichard
https://repl.it/@richardek2638/Self-reference-drillrichard
https://repl.it/@richardek2638/Deleting-keys-drillrichard
View Global Variables
Question 1.
A variable scope determines when variables can be assessed at different parts of the code. A variable in the global scope can be accessed anywhere in the code. On the other hand a variable in a block scope can only be accessed in the function it was defined in.
Question 2.
A global variable can lead to unexpected outcomes due to different parts of the code trying to use the same variable name. For example if a global variable was named xyz, but then a function creates another variable named xyz without using let, or const it can lead to many hard to fix bugs.
Question 3.
Strict mode prevent people from defining variables without using let or const. This stops people from creating global variables within their functions.
Question 4.
View Array and Loop
https://repl.it/@richardek2638/min-and-max-without-sort-drillrichard
https://repl.it/@richardek2638/average-drillrichard
https://repl.it/@richardek2638/fizzbuzz-drill-jsrichard
View Array 2
https://repl.it/@richardek2638/Array-copying-I-drillrichard
https://repl.it/@richardek2638/Array-copying-II-drillrichard
https://repl.it/@richardek2638/Squares-with-map-drillrichard
https://repl.it/@richardek2638/Sort-drillrichard
]https://repl.it/@richardek2638/Filter-drillrichard
https://repl.it/@richardek2638/Find-drillrichard
View Array
https://repl.it/@richardek2638/Creating-arrays-drillrichard
https://repl.it/@richardek2638/Adding-array-items-drillsrichard
https://repl.it/@richardek2638/Accessing-array-items-drillrichard
https://repl.it/@richardek2638/Array-length-and-access-drillrichard
View Logic
https://repl.it/@richardek2638/Traffic-lights-drillrichard
https://repl.it/@richardek2638/Error-alert-drill-1richard