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 JavaScript Basics (Retired) Storing and Tracking Information with Variables Capturing Visitor Input

Godfrey M
PLUS
Godfrey M
Courses Plus Student 2,696 Points

How can i capture more than 10 visitors names on my site using the ... console.log()??

hi there ! yah i wanted to know how i can capture at least names of visitors on my website with a pop of javascript asking what is your name? by using the console.log() so that when i check using the DEV tools i will find those names. possible or not possible. help here people. i'm doing more practice

2 Answers

Steven Parker
Steven Parker
231,269 Points

The variables you create in JavaScript exist on the client side (in the user's browser). So if you open your DevTools, you're only seeing the variables and log entries from your own browser. Even if other people are working with the same page, your browser will only show what you have done.

To keep information entered by other users, your page will need to submit data back to the server, and the server program will need to store it for you.

Godfrey M
PLUS
Godfrey M
Courses Plus Student 2,696 Points

thanks steven for taking time to reply me , this information i find it helpful coz i was struggling tracking but in vein. your comment i turn into a correct answer ,thanks again