Skip to content

Instantly share code, notes, and snippets.

View gigiskarlett's full-sized avatar
👩‍💻
Catch me coding or traveling the world, I only do things I love xx

Gigi Skarlett gigiskarlett

👩‍💻
Catch me coding or traveling the world, I only do things I love xx
View GitHub Profile
https://repl.it/@GianinaSkarlett/Object-creator-drill-2
https://repl.it/@GianinaSkarlett/Object-updater-drill-1
https://repl.it/@GianinaSkarlett/Self-reference-drill-1
https://repl.it/@GianinaSkarlett/Deleting-keys-drill-1
Scope and the problem with globals
A scope defines how a declared variable can or cannot be accessed at different places in our code. The reason we want to understand scopes it’s because it’ll give us a better understanding of our code and how to avoid bugs. Scopes have two types, global scope and block scopes.
The first, global scope is a variable that is declared outside of a function in JavaScript. Global scopes can also expand across files as long as the file with the declared scope loads first. Global scopes are usually used when using a JavaScript library. The problem with global scopes is that they tend to make unintended side effects in a program which causes the code to inadvertently change the outside in order to carry out instructions which causes an indeterminate function which given a single set of inputs sometimes returns one value and another at other times which leads to hard-to-track bugs in our code. Global scopes are to be avoided unless we actually have a particular reason to use them.
https://repl.it/@GianinaSkarlett/Make-student-reports-drill-2
https://repl.it/@GianinaSkarlett/Enroll-in-summer-school-drill-1
https://repl.it/@GianinaSkarlett/find-by-id-drill-1
https://repl.it/@GianinaSkarlett/validate-object-keys-drill-1
@gigiskarlett
gigiskarlett / Event Listener Drills
Last active October 6, 2018 22:21
Event Listener Drills
https://repl.it/@GianinaSkarlett/Cat-carousel-jQuery-3
https://repl.it/@GianinaSkarlett/return-of-fizz-buzz
@gigiskarlett
gigiskarlett / shopping list app
Created October 8, 2018 19:33
Shopping List App
https://repl.it/@GianinaSkarlett/Shopping-list-app-jQuery-3
@gigiskarlett
gigiskarlett / How web apps work
Last active October 31, 2018 01:31
How web apps work
https://docs.google.com/document/d/1Q89duHQptEMnA4IXkjkPeDNnQy5fFYJ2yRk-ck3ifcU/edit?usp=sharing
https://docs.google.com/drawings/d/17SJah7cu5n6kU5WHCchUFHA6zHOuRwj8XbD6T2ThqdQ/edit?usp=sharing
@gigiskarlett
gigiskarlett / Reading API documentation
Created October 31, 2018 01:29
Assigment: Reading API documentation
https://docs.google.com/document/d/1utq5m2lIUUkstf42KeHFELGo4-BxsEKXP7OXK4Vhft0/edit?usp=sharing
@gigiskarlett
gigiskarlett / GET requests
Last active November 1, 2018 03:52
GET requests
https://repl.it/@GianinaSkarlett/DISPLAY-MULTIPLE-RANDOM-DOG-IMAGES
https://repl.it/@GianinaSkarlett/DISPLAY-MULTIPLE-RANDOM-DOG-IMAGES-MVP
https://repl.it/@GianinaSkarlett/Display-Random-Image-from-a-Dog-Breed
@gigiskarlett
gigiskarlett / Popular Flights Destination and hike trails
Created November 3, 2018 01:41
Popular Flights Destination and hike trails