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
Yeshaya Coffman
Full Stack JavaScript Techdegree Graduate 22,885 PointsFrom one html page to another with JavaScript
I'm confuse feel like I'm missing something When I have to html pages and one javascript doc with an array how a change in the array that happened in one html page would be reflected in the array in the other html page
2 Answers
Helmut Granda
10,343 PointsIt depends on what you are trying to do, but there are multiple options here. One could be to pass the changes through a query string, another one would be to save the data to a cookie, another one would be saving the differences and extracting them through local storage, finally you have other options on the server side but I have the feeling you don't need to go that route.
Helmut Granda
10,343 PointsUnfortunately I do not know of a specific course that covers all the scenarios above. I did a 5 minute scan to the JavaScript modules and was not able to find one in specific that I could link you to.
Yeshaya Coffman
Full Stack JavaScript Techdegree Graduate 22,885 Pointsok thank you anyway
Yeshaya Coffman
Full Stack JavaScript Techdegree Graduate 22,885 PointsYeshaya Coffman
Full Stack JavaScript Techdegree Graduate 22,885 PointsI don't completely understand the options you're giving me and I don't want to bother you with the explanation could you direct me to a course where they'll talk about it if you know?