This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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' |