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 trialWaqas Khan
Courses Plus Student 2,661 Pointscan you please explain me " interactive functionality" in javascript
can you please explain me " interactive functionality" in javascript
3 Answers
Steven Parker
231,261 Points"Interactive functionality" is responding to what the user does, causing the page to do something beyond just having it show something. In the case of the code in the video, it involves reacting to mouse clicks and making sounds.
Stuart Wright
41,120 PointsAnother simple example is me writing this post. When I click the 'Post answer' button, my post is added to the page, without having to reload the entire page. This is another example of interactivity which would not be possible without JavaScript.
Stuart Wright
41,120 PointsOk, this might have been a bad example, because I think the page did actually reload after I hit 'Post answer'. A better example is me hitting the 'Add comment' button just now, and it presented me with this box to type in, which wasn't there previously, and the page definitely didn't reload.
Diego Rojitas
2,088 Pointss