Skip to content

Instantly share code, notes, and snippets.

View SheenaVasani's full-sized avatar

Sheena Vasani SheenaVasani

View GitHub Profile
@SheenaVasani
SheenaVasani / gist:959a5ed3a09cdf9c253c3d3bcbee5430
Created June 29, 2017 01:36
User feedback important notes, conclusion
1. One user thought the desktop version was way too small. He recommended widening the elements to make them more readable.
Wasn't a fan of the background image.
2. Another user also thought the elements were too squashed together. However, she did the background image and idea.
Conclusion: make elements wider.
Overall, this program is using regular expressions to create a portion of the text analyzer app. We first retrieve the word
from the user and split it. Then it appears we use that as a global variable, once again referring to it in the subsequent function.
We assign it to the words variable.
Now we are using conditional statements and loops to check if the word matches one in the most MostFrequent object.
We then assign maxkey and maxcount variables. If the word/MostFrequent object matches, it is returned.
What is scope? Your explanation should include the idea of global vs. local scope.
A:Variables declared in the global scope are available everywhere in your code, whereas ones in the local are not.
For example, those variables declared within function would have local scope. However, those declared outside have global.
Why are global variables avoided?
A: For the most part, global variables tend to be avoided as they can cause bugs further down the line.
Explain JavaScript's strict mode
A: This allows users to avoid any unintended side effects global variables may bring to the code. "Anytime a variable is declared without the var keyword,
an error will be triggered."
Help lower income individuals using Medicaid find the best healthcare professionals who take their insurance in their state.
https://jsbin.com/jazoven/edit?html,js,console,output
http://jsbin.com/giwusef/1/edit?html,js,console
https://jsbin.com/hugubug/1/edit?js,console
https://jsbin.com/yinubeg/1/edit?js,console
https://jsbin.com/bepatun/1/edit?html,css,js,console
@SheenaVasani
SheenaVasani / jQUERY drills
Created May 29, 2017 22:47
jQUERY drills
https://jsbin.com/bogufequbu/1/edit?html,js,output
https://jsbin.com/qicozisaho/1/edit?html,css,js,output
https://jsbin.com/ranotobako/1/edit?html,css,js,output
@SheenaVasani
SheenaVasani / 6.2: Object Drills 1
Created May 23, 2017 21:29
6.2: Object Drills 1
Object creator: https://jsbin.com/lunaqig/edit?html,js,console,output
Object update: https://jsbin.com/buzesu/edit?html,js,output
Self-reference: https://jsbin.com/cexulay/edit?js,console,output
Delete: https://jsbin.com/heximag/edit?js,console
@SheenaVasani
SheenaVasani / JS Array and Loop Drills
Created May 22, 2017 23:24
JS Array and Loop Drills
Max/min: https://jsbin.com/lisabod/edit?js,console
Computing average: https://jsbin.com/meyodu/edit?js,console
Fizzbuzz: https://jsbin.com/nebupud/edit?js,console
@SheenaVasani
SheenaVasani / JS Lesson 4 Array Exercises
Created May 19, 2017 20:30
JS Lesson 4 Array Exercises
Creating arrays: https://jsbin.com/xiposo/edit?js,output
Adding array items: https://jsbin.com/meyuxeg/edit?html,js,output
Accessing array items: https://jsbin.com/kogiwa/edit?js,console
Array length and access: https://jsbin.com/mabahoz/edit?js,output
Array copying 1: https://jsbin.com/xiruzez/edit?js,console
Array copying 2: https://jsbin.com/rafiduv/edit?js,console
Squares with map: https://jsbin.com/nozenup/edit?js,console
Sort: https://jsbin.com/yaxefux/edit?js,console
Filter: https://jsbin.com/xemugu/edit?js,console
Find: https://jsbin.com/zitudac/1/edit?html,js,output
@SheenaVasani
SheenaVasani / JS 3.1 Logic Exercises
Created May 17, 2017 19:37
JS 3.1 Logic Exercises
Traffic Light: https://jsbin.com/hitisuc/1/edit?js,console,output
Error alert: https://jsbin.com/cumeja/1/edit?html,css,js,output