Skip to content

Instantly share code, notes, and snippets.

@wendy
wendy / keybase.md
Created May 16, 2017 20:56
keybase proof

Keybase proof

I hereby claim:

  • I am wendy on github.
  • I am wendy (https://keybase.io/wendy) on keybase.
  • I have a public key ASAk0qGFvbVTJNSbFFiXHtnNecuvTYJ-VvCCsHrBfDpCswo

To claim this, I am signing this object:

@wendy
wendy / Call_vs_Apply.js
Last active August 29, 2015 14:22
Gist example explaining Call vs Apply
//Call vs Apply
var greet = function(name, state) {
console.log('Hi ' + name + ' from ' + state + '.');
};
greet('Wendy', 'New York'); // 'Hi Wendy from New York.'
//What if we put that info into an array instead?
var wendy = ['Wendy', 'New York'];
@wendy
wendy / Arguments_object.js
Last active August 29, 2015 14:22
Gist example explaining the Arguments object
//Arguments object
//Take for example a function that sums up two numbers:
var sum = function(a,b) {
return a + b;
};
sum(1,5); // 6
//What if we wanted to sum up three numbers? We can add another parameter like this: