Skip to content

Instantly share code, notes, and snippets.

@Richardek
Richardek / Strings
Created September 14, 2018 03:56
String drills
https://repl.it/@richardek2638/Wiseperson-generator-drillrichard
https://repl.it/@richardek2638/shouter-drillrichard
https://repl.it/@richardek2638/text-normalizer-drillrichard
@Richardek
Richardek / Number drills
Created September 14, 2018 19:18
Numbers
https://repl.it/@richardek2638/area-of-a-rectangle-drillrichard
https://repl.it/@richardek2638/temperature-conversion-drillrichard
https://repl.it/@richardek2638/Is-divisible-drillrichard
@Richardek
Richardek / Logic
Created September 18, 2018 05:08
Logic Drills
https://repl.it/@richardek2638/Traffic-lights-drillrichard
https://repl.it/@richardek2638/Error-alert-drill-1richard
@Richardek
Richardek / Array
Created September 18, 2018 21:47
Array Drills
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
@Richardek
Richardek / Array 2
Last active September 19, 2018 04:46
Array Drill 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
@Richardek
Richardek / Array and Loop
Created September 19, 2018 05:59
Array and Loop drills
https://repl.it/@richardek2638/min-and-max-without-sort-drillrichard
https://repl.it/@richardek2638/average-drillrichard
https://repl.it/@richardek2638/fizzbuzz-drill-jsrichard
@Richardek
Richardek / Global Variables
Created September 19, 2018 17:35
Global Variables Challenge
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.
@Richardek
Richardek / Objects
Created September 19, 2018 22:47
Object drills
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
@Richardek
Richardek / Object and Array Drills
Created September 20, 2018 19:35
Objects and Array
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
@Richardek
Richardek / JQuery
Created September 25, 2018 21:24
JQuery drills
https://repl.it/@richardek2638/Jquery-Need-helprichard
https://repl.it/@richardek2638/return-of-fizz-buzzHelprichard