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 DOM Scripting By Example Improving the Application Code Next Steps

Using 'local storage'

This this, video Guil Hernandez mentioned using local storage to make the app's content persist.

This is only true for the individual user correct? Meaning if you and I both go to the same page you are only going to see the content you add or remove, and I will only see what I have added or removed because this local storage is client side.

I suppose I am confused about the intended use case for this app. Is this an app you would send a link to all of your invitees to confirm on, or simply for the host to add/confirm on?

It might be a cool idea to have it passcode/pin protected so if pin A is used you're a host and can add people, however, if you're pin{hash} you are a guest and can confirm (only your user).

Thoughts?

2 Answers

Steven Parker
Steven Parker
229,732 Points

Your understanding of local storage seems correct.

If users were intended to share entries, you'd need some back-end support using a database, which is probably beyond the scope of this particular course.

Jay Reyes
seal-mask
.a{fill-rule:evenodd;}techdegree
Jay Reyes
Python Web Development Techdegree Student 15,937 Points

This app seems suited to only the host of the event. They could present it to an event committee, but I see it as a one-person show.