Instantly share code, notes, and snippets.

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
View Number drills
https://repl.it/@richardek2638/area-of-a-rectangle-drillrichard
https://repl.it/@richardek2638/temperature-conversion-drillrichard
https://repl.it/@richardek2638/Is-divisible-drillrichard
View Strings
https://repl.it/@richardek2638/Wiseperson-generator-drillrichard
https://repl.it/@richardek2638/shouter-drillrichard
https://repl.it/@richardek2638/text-normalizer-drillrichard