Skip to content

Instantly share code, notes, and snippets.

View kaysway's full-sized avatar

Kayla kaysway

  • Denver
View GitHub Profile
@kaysway
kaysway / Reading API documentation
Created January 23, 2019 17:15
Reading API documentation
Assignment 1:
Required parameter: part
data type = string, allowed value example = contentDetails: 2
Optional parameter 1: maxResults
data type = unsigned integer, allowed value example = 5
Optional paramter 2: order
data type = string, allowed value example = alphabetical
Assignment 2:
(Example: https://maps.googleapis.com/maps/api/geocode/outputFormat?parameters)
@kaysway
kaysway / async web apps Project 1
Created January 18, 2019 11:51
Client server analogy
The relationship between a client and a server is like the relationship between a customer at a restaurant and their waiter.
The customer (client) makes a request to the waiter (server) who fulfills that request in the background with likely the
help of many other workers at the restaurant, but the client does not see all of that interaction. They just see the meal
that is the result of their request.
@kaysway
kaysway / Event Listener Drills
Created December 7, 2018 14:04
Event Listener Drills
https://repl.it/@kaysway90s/Cat-carousel-jQuery
https://repl.it/@kaysway90s/return-of-fizz-buzz
@kaysway
kaysway / JS Exercises
Last active December 3, 2018 01:34
JS Exercises
https://repl.it/@kaysway90s/fruitLengthArray
Description for fruitLengthArray: Create a function that returns the total number of items in an array that
have a length of 5 characters or less.
https://repl.it/@kaysway90s/UserAge
Description for UserAge repl: Create a function that returns one of two strings after calculating the age of the user
https://repl.it/@kaysway90s/checkAgesimpleCalc
Description for checkAgesimpleCalc: 3 basic functions
https://repl.it/@kaysway90s/Enroll-in-summer-school-drill
https://repl.it/@kaysway90s/Make-student-reports-drill
https://repl.it/@kaysway90s/find-by-id-drill
https://repl.it/@kaysway90s/validate-object-keys-drill
https://repl.it/@kaysway90s/Object-creator-drill
https://repl.it/@kaysway90s/Object-updater-drill
https://repl.it/@kaysway90s/Self-reference-drill
https://repl.it/@kaysway90s/Deleting-keys-drill
@kaysway
kaysway / gist:b8bcacbecbd61eca6e057999ee273941
Created November 23, 2018 22:00
Challenge: Scope and the problem with globals
What is scope?
Scope is the extent to which a variable is accessible within your code. If a variable is only accessible within its local function
then it has local scope versus if the function can be accessed globally, this means that the function can be accessed anywhere
throughout the entire program and across files.
Why are global variables avoided?
Global variables should be avoided since it is just as easy to access them on accident as it is on purpose. If you are writing
a very short program or function, then you probably know all of your variables and will not accidentally duplicate a global
variable. However, it is generally impractical to use these due to the size of the program and the length of the code required.
@kaysway
kaysway / Arrays and Loops Drills
Created November 20, 2018 14:39
Arrays and Loops Drills
https://repl.it/@kaysway90s/min-and-max-without-sort-drill
https://repl.it/@kaysway90s/average-drill
https://repl.it/@kaysway90s/fizzbuzz-drill-js
https://repl.it/@kaysway90s/Array-copying-I-drill
https://repl.it/@kaysway90s/Array-copying-II-drill
https://repl.it/@kaysway90s/Squares-with-map-drill
https://repl.it/@kaysway90s/Sort-drill
https://repl.it/@kaysway90s/Filter-drill
https://repl.it/@kaysway90s/Find-drill
@kaysway
kaysway / Array Basic Drills
Created November 19, 2018 12:22
Array Basics Drills
https://repl.it/@kaysway90s/Creating-arrays-drill
https://repl.it/@kaysway90s/Adding-array-items-drills
https://repl.it/@kaysway90s/Accessing-array-items-drill
https://repl.it/@kaysway90s/Array-length-and-access-drill