Skip to content

Instantly share code, notes, and snippets.

View porcoespinho's full-sized avatar

Luis Vargas porcoespinho

View GitHub Profile
@porcoespinho
porcoespinho / Beasts_challenge1.js
Last active March 13, 2017 01:03
Luis Vargas version of Improving runWithDebugger #2
// Beasts challenge 1
/**
* Your task is to rewrite runWithDebugger so it can take an optional array
* that contains any arguments you want to pass into the callback function.
You should be able to pass multiple arguments into the array. Here's an example.
function sayFullName(first, last) {
console.log(first + ' ' + last);
}
runWithDebugger(sayFullName, ['gordon', 'zhu']); // 'gordon zhu'