This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What is scope? Your explanation should include the idea of global vs. local scope. | |
Variable scope defines how declared variables can be accessed or changed. Global scope variables are defined outside of a function block and can be accessed or changed from anywhere in the same file or even in another file. Block variables are defined within a function block and can only be accessed or changed from within that function block. | |
Why are global variables avoided? | |
Global variables can lead to unintended side effects, such as a function could change the value of a global variable unintentionally. Using global variables can cause code to be hard to understand, can make a function indeterminate if it returns different results in some situations vs others, and is hard to troubleshoot. | |
Explain JavaScript's strict mode. | |
Strict mode can be defined in a function but preferably is defined at the top of each JavaScript file. Strict mode ensures that all variable defintions must be defined with const or let so that blo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://repl.it/@travelingtonic/min-and-max-without-sort-drill | |
https://repl.it/@travelingtonic/average-drill | |
https://repl.it/@travelingtonic/fizzbuzz-drill-js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://repl.it/@travelingtonic/Array-copying-I-drill | |
https://repl.it/@travelingtonic/Array-copying-II-drill | |
https://repl.it/@travelingtonic/Squares-with-map-drill | |
https://repl.it/@travelingtonic/Sort-drill | |
https://repl.it/@travelingtonic/Filter-drill | |
https://repl.it/@travelingtonic/Find-drill |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://repl.it/@travelingtonic/Creating-arrays-drill | |
https://repl.it/@travelingtonic/Adding-array-items-drills | |
https://repl.it/@travelingtonic/Accessing-array-items-drill | |
https://repl.it/@travelingtonic/Array-length-and-access-drill |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://repl.it/@travelingtonic/Traffic-lights-drill | |
https://repl.it/@travelingtonic/Error-alert-drill |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://repl.it/@travelingtonic/area-of-a-rectangle-drill | |
https://repl.it/@travelingtonic/temperature-conversion-drill | |
https://repl.it/@travelingtonic/Is-divisible-drill |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://repl.it/@travelingtonic/Wiseperson-generator-drill | |
https://repl.it/@travelingtonic/shouter-drill | |
https://repl.it/@travelingtonic/text-normalizer-drill |
NewerOlder