Skip to content

Instantly share code, notes, and snippets.

{
"version": "Notebook/1.0",
"items": [
{
"type": 1,
"content": {
"json": "# Well-Architected Security Assessment Workbook\r\n\r\n<img src=\"https://learn.microsoft.com/en-us/azure/well-architected/_images/well-architected-hub.png\" alt=\"Well-architected framework pillars\" style=\"width: 40%; height: auto;\" />\r\n\r\nFor more information visit [Microsoft Azure Well-Architected Framework](https://docs.microsoft.com/en-us/azure/architecture/framework/security/)"
},
"name": "text - 9"
},
@rebmid
rebmid / Celsius to Fahrenheit
Created June 2, 2018 05:46
Celsius to Fahrenheit
//todays forecast stays constant
const kelvin = 0;
//converting kelvin to celsius
let celsius = kelvin - 273;
//calculating fahrenheit
let fahrenheit = celsius * (9 / 5) + 32;
//round down decimal
fahrenheit = Math.floor(fahrenheit);
https://repl.it/@rebmid/most-frequent-word-analyzer-challenge
https://repl.it/@rebmid/Make-student-reports-drill-1
https://repl.it/@rebmid/Enroll-in-summer-school-drill
https://repl.it/@rebmid/find-by-id-drill
https://repl.it/@rebmid/validate-object-keys-drill
https://repl.it/@rebmid/Object-creator-drill
https://repl.it/@rebmid/Object-updater-drill
https://repl.it/@rebmid/Self-reference-drill
https://repl.it/@rebmid/Deleting-keys-drill
• What is scope? Your explanation should include the idea of global vs. local scope.
JavaScript has two scopes: global and local. A variable that is declared outside a function definition is a global variable. Its value is accessible and modifiable throughout your program. A variable that is declared inside a function definition is local. It is created and destroyed every time the function is executed, outside of the function no other code can access it.
Why are global variables avoided?
If your program or use of them happens more than once they can both point to the same thing and cause errors or strange behavior in your program
• Explain JavaScript's strict mode
Puts restrictions on your code that you program. If its declared globally it applies to all of your code. If its declared inside a function it just effects that function. Strict mode makes your code more secure. It will cause real errors if you have bad syntex in your code
• What are side effects, and what is a pure function?
Side effects are an i
https://repl.it/@rebmid/min-and-max-without-sort-drill
https://repl.it/@rebmid/average-drill
https://repl.it/@rebmid/fizzbuzz-drill-js
https://repl.it/@rebmid/Array-copying-I-drill
https://repl.it/@rebmid/Array-copying-II-drill
https://repl.it/@rebmid/Squares-with-map-drill
https://repl.it/@rebmid/Sort-drill
https://repl.it/@rebmid/Filter-drill
https://repl.it/@rebmid/Creating-arrays-drill
https://repl.it/@rebmid/Adding-array-items-drills
https://repl.it/@rebmid/Accessing-array-items-drill
https://repl.it/@rebmid/Array-length-and-access-drill