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

Jivansh Bakshi
Jivansh Bakshi
2,564 Points

Getting Error for publishedAt() in by_line.pug

Getting error; publishedAt() is not a function

5 Answers

Katie Shook
Katie Shook
12,234 Points

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!

Matthew McQuain
Matthew McQuain
14,184 Points

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

Katie Shook
Katie Shook
12,234 Points

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

This previous post may help

Matthew McQuain
Matthew McQuain
14,184 Points

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.

Matthew McQuain
Matthew McQuain
14,184 Points

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.