Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChris DeMars
941 PointsHow do I write an anonymous callback function as a second parameter?
I can't figure this out. I am not good with JS.
var gulp = require('gulp');
gulp.task("goodbye", function() {
console.log("goodbye");
});
1 Answer
Marcus Parsons
15,719 PointsHey Chris,
You have everything right in your actual code. The only reason why the challenge won't pass is that you're missing an ! in the goodbye string to console.log
var gulp = require('gulp');
gulp.task("goodbye", function() {
console.log("goodbye!");
});
Chris DeMars
941 PointsChris DeMars
941 PointsWhy do I have to add an exclamation point, wouldn't that make it different from the string?
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsThe string to log out to the console for task 3 is "goodbye!".
Chris DeMars
941 PointsChris DeMars
941 PointsSHows how much I pay attention lol
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsIt happens to the best of us, Chris! Happy Coding! =D
Chris DeMars
941 PointsChris DeMars
941 PointsHa thanks man.
Ary de Oliveira
28,298 PointsAry de Oliveira
28,298 PointsGood work