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 trial

JavaScript

Robert Hubbard
seal-mask
.a{fill-rule:evenodd;}techdegree
Robert Hubbard
Full Stack JavaScript Techdegree Student 6,780 Points

"Uncaught ReferenceError: sayGreeting is not defined", instead of value undefined.

in video "Default Function Parameters" when calling on method with param not set, value is to still come out as "undefined" and the code still roles. for mine it kills the code saying: "Uncaught ReferenceError: sayGreeting is not defined" instead of "Good Morning undefined"

function sayGreeting(name) {
  return `Good morning, ${name}!`;
}

console.log(sayGreeting());
Steven Parker
Steven Parker
231,248 Points

Something odd going on here for sure. Try sharing a snapshot of your workspace.

Steven Parker
Steven Parker
231,248 Points

A "snapshot" isn't a picture (like a "screenshot") but a complete clone of your workspace. Click on the highlighted word in my previous message, it is a link to a video that explains how to make and share them.

Steven Parker
Steven Parker
231,248 Points

Robert Hubbard — did you resolve this issue? If not, post a link to your snapshot and I'll take a look.