Skip to content

Instantly share code, notes, and snippets.

@elenaparaschiv
Last active July 1, 2017 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elenaparaschiv/c3a1584e541f9f1476e7f381043043ed to your computer and use it in GitHub Desktop.
Save elenaparaschiv/c3a1584e541f9f1476e7f381043043ed to your computer and use it in GitHub Desktop.
function runWithDebugger(callback, optionalArguments){
debugger;
callback.apply(this, optionalArguments);
}
function sayFullName(first, last) {
console.log( "Hi " + first + " "+ last);
}
// expected result ---> 'Hi Elena Paraschiv'
runWithDebugger(sayFullName, ["Elena", "Paraschiv"]);
@gordonmzhu
Copy link

👍 looks good. However formatting is inconsistent. This should also be saved as a .js file, not .txt.

@elenaparaschiv
Copy link
Author

fixed it. sorry about that :)

@gordonmzhu
Copy link

Oh also in line 3 you need space after this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment