This file contains 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
// ================================================================================ | |
// You will be writing a series of functions beneath each block of comments below. | |
// Tackle each function one at a time. You may move on to a new exercise and return | |
// later. Run the code and the console to the right will tell you if your function | |
// is successfully passing the tests. | |
// ================================================================================ | |
/* | |
Define a function named `kmToMiles` that receives one parameter: |
This file contains 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/@emptycqn/most-frequent-word-analyzer-challenge |
This file contains 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/@emptycqn/Make-student-reports-drill | |
https://repl.it/@emptycqn/Enroll-in-summer-school-drill | |
https://repl.it/@emptycqn/find-by-id-drill | |
https://repl.it/@emptycqn/validate-object-keys-drill |
This file contains 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/@emptycqn/Object-creator-drill | |
https://repl.it/@emptycqn/Object-updater-drill-70 | |
https://repl.it/@emptycqn/Self-reference-drill-32 | |
https://repl.it/@emptycqn/Deleting-keys-drill-29 |
This file contains 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. | |
JS reads code from top to bottom and left to right. Global scope is anything that is not in a function or a block and therefore can be used | |
globally. Where local scope is confined to functions and blocks and therefore encapsulated in those functions or blocks from the Global scope | |
Why are global variables avoided? | |
Global variables should be avoided because of control, it can be lost in which unintended consequences can resul in the program. | |
Explain JavaScript's strict mode | |
Strict mode is used to keep the developer on tract with their code when dealing with variables. It also can be used for functions and other | |
items in JS that I am unfamilar with but in essence strict mode or 'use strict' tests in the background for sloppy coding when it comes to variables. | |
This file contains 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/@emptycqn/min-and-max-without-sort-drill | |
https://repl.it/@emptycqn/average-drill | |
https://repl.it/@emptycqn/fizzbuzz-drill-js |
This file contains 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/@emptycqn/Array-copying-I-drill | |
https://repl.it/@emptycqn/Array-copying-II-drill | |
https://repl.it/@emptycqn/Squares-with-map-drill | |
https://repl.it/@emptycqn/Sort-drill | |
https://repl.it/@emptycqn/Filter-drill | |
https://repl.it/@emptycqn/Find-drill |
This file contains 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/@emptycqn/Creating-arrays-drill | |
https://repl.it/@emptycqn/Adding-array-items-drills | |
https://repl.it/@emptycqn/Accessing-array-items-drill | |
https://repl.it/@emptycqn/Array-length-and-access-drill |
This file contains 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/@emptycqn/Traffic-lights-drill | |
https://repl.it/@emptycqn/Error-alert-drill |
This file contains 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/@emptycqn/Is-divisible-drill | |
https://repl.it/@emptycqn/temperature-conversion-drill | |
https://repl.it/@emptycqn/Is-divisible-drill |
NewerOlder