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 Instance Methods

Getting Error for publishedAt() in by_line.pug

Getting error; publishedAt() is not a function

5 Answers

Hey Matthew! You're not dumb you're learning. This may not be the issue but double check that you don't have it as publishedAt(); with the ; in the pug. If all else fails and you're still hung up you can compare your code to Guil's code that can be downloaded. Good Luck!

Well heck... you were 100% right! Thank you!

Woo! Happy you were able to fix it! You can mark it as best answer if you’d like :)

This previous post may help

Same. This issue still is not fixed, and the above suggested post does not help someone as dumb as me. Neither the shortDescription or publishedAt methods work as of this posting.

Weird, I can't do anything with your comment at all. For some reason I can mark mine as the best answer though. Something's strange.