Skip to content

Instantly share code, notes, and snippets.

View kaysway's full-sized avatar

Kayla kaysway

  • Denver
View GitHub Profile
@kaysway
kaysway / gist:90ca8ddfa8f53f14c9a4c3172e31cc72
Created November 15, 2018 13:28
String Drills/Unit 2/ Lesson 2/ Project 3
https://repl.it/@kaysway90s/wisePerson
https://repl.it/@kaysway90s/shouterstring-drillsUnit-2Lesson-2Project-3
https://repl.it/@kaysway90s/text-normalizer-drill
@kaysway
kaysway / gist:236fdfe57ff6e72c1fb6bc6fec0e0a72
Created November 15, 2018 14:13
Number Drills/ Unit 2/Lesson 2/Project 5
https://repl.it/@kaysway90s/area-of-a-rectangle-drill
https://repl.it/@kaysway90s/temperature-conversion-drill
https://repl.it/@kaysway90s/Is-divisible-drill
@kaysway
kaysway / gist:49c886aaa297f952da58c377d2a8cfac
Created November 18, 2018 18:23
Logic Drills/Unit 2/Lesson 3/Project 3
https://repl.it/@kaysway90s/Traffic-lights-drill
https://repl.it/@kaysway90s/Error-alert-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
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 / 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
@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.
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
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
@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