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 PointsWhy are we using JavaScript in HTML?
why do we need a JavaScript in HTML, and what is the purpose of JavaScript?
4 Answers
Steven Parker
231,236 PointsHTML provides the content of the page, and JavaScript provides the interactive functionality. Most pages will also have a third component called CSS which provides the visual styling for the page.
These three technologies working together are the basis for most front-end development.
Steven Parker
231,236 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.
Waqas Khan
Courses Plus Student 2,661 Pointscan you please explain me " interactive functionality" in javascript
Waqas Khan
Courses Plus Student 2,661 Pointswhat is interactive functionality?