Skip to content

Instantly share code, notes, and snippets.

View spoccomp's full-sized avatar

richard trapanese spoccomp

View GitHub Profile
// ================================================================================
// 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:
@spoccomp
spoccomp / gist:413cbfa8218332c35fe680b1fd323893
Created June 28, 2018 02:04
Challenge: analyze a most frequent word program
https://repl.it/@emptycqn/most-frequent-word-analyzer-challenge
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
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
@spoccomp
spoccomp / gist:daf5d0b9afb2525a78bf1d4ccc43f586
Created June 27, 2018 21:30
Challenge: In your own words
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.
https://repl.it/@emptycqn/min-and-max-without-sort-drill
https://repl.it/@emptycqn/average-drill
https://repl.it/@emptycqn/fizzbuzz-drill-js
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
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
https://repl.it/@emptycqn/Traffic-lights-drill
https://repl.it/@emptycqn/Error-alert-drill
https://repl.it/@emptycqn/Is-divisible-drill
https://repl.it/@emptycqn/temperature-conversion-drill
https://repl.it/@emptycqn/Is-divisible-drill