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

Views for post

I would like to add a function that will include the number of visitors to a given post. What would it look like? Thank you for all the hints

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,741 Points

Are you working on a challenge question? What's your code look like? We'll need a little more info to help out.

Hi, this is my github code https://github.com/bartekfigat/portfolio-website-front-end-and-back-end.git. I would like to add views to every post, but I do not know how to do it. I mean the number of visitors to the post. Posts can be found under the blog tab.. Do you have any hints? Thank you