Skip to content

Instantly share code, notes, and snippets.

@acarter43
acarter43 / capstone description
Created December 19, 2017 00:33
capstone description
An easy way to access and sort through news articles using the New York Times API.
@acarter43
acarter43 / SVUquiz.html
Created December 4, 2017 14:07
thinkful javascript quiz
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="svuquiz.css">
<title>Quiz</title>
</head>
<body class='body'>
<main class="main">
https://repl.it/@ariannac1/Cat-carousel-jQuery
https://repl.it/@ariannac1/return-of-fizz-buzz
https://repl.it/@ariannac1/Enroll-in-summer-school-drill
https://repl.it/@ariannac1/find-by-id-drill
https://repl.it/@ariannac1/validate-object-keys-drill
https://repl.it/@ariannac1/min-and-max-without-sort-drill
https://repl.it/@ariannac1/average-drill
https://repl.it/@ariannac1/fizzbuzz-drill-js
https://repl.it/@ariannac1/Object-creator-drill
https://repl.it/@ariannac1/Object-updater-drill
https://repl.it/@ariannac1/Self-reference-drill
https://repl.it/@ariannac1/Deleting-keys-drill
* What is scope? Your explanation should include the idea of global vs. local scope.
Scope defines the visibilty and accessibility of a variable. If a variable is defined inside of
a function it is only visible inside of that function. When a variable is defined inside of the function
it is called local scope. Local scope means that variables with the same name can be used multiple times
without causing errors and won’t be accessible in other functions. Global scope is something that should
for the most part be avoided. Global scope means the variable was declared outside of the function. While
global functions can work across multiple files it can also have some unintended side effects including
altering the return values of variables.
* Why are global variables avoided?
https://repl.it/@ariannac1/Array-Copying-1
https://repl.it/@ariannac1/Array-Copying-2
https://repl.it/@ariannac1/Squares-with-Maps
https://repl.it/@ariannac1/Sorting
https://repl.it/@ariannac1/filter
https://repl.it/@ariannac1/Find
https://repl.it/@ariannac1/creating-arrays
https://repl.it/@ariannac1/adding-array-items
https://repl.it/@ariannac1/accessing-array-items
https://repl.it/@ariannac1/Array-length-and-access
https://repl.it/@ariannac1/Traffic-Light
https://repl.it/@ariannac1/Error-Drill