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 trialAnders Lund
4,155 PointsWhy use Javascript
Hi, this is a very broad question, but I'm wondering what I should use javascript for in a website(html/css) can someone explain to me in detail (if they have the time) what to use it for and how it works, plus the Angular JS and what that framework is for, and also JQuery whats it for? haha lots of questions, but really appreciate it if someone would explain it in detail to me, or give me some links to it :) thanks
2 Answers
Kevin Korte
28,149 PointsJs is really optimized to "do stuff". It typically adds interactions to a website. It's the dynamic part of the front end. If you want to see how boring many sites are with javascript, disable it in your browser and than go about your normal day. You'll notice a reduced user experience on most all sites because you can't interact with the sites in a way you take for granted now.
Angular js is a very complicated framework, but in short, it's a view templating framework that binds data to views in a reactive and dynamic way.
Which is very different than jquery, which is simply a library written in javascript, that provides us a simpler syntax to dom manipulation. There is nothing that jquery can do, that vanilla javascript can't do, but with jquery, we as developers have an easier to read, and usually shorter syntax to do many of the things we want to do to the dom in many websites.
Anders Lund
4,155 Pointsaha thanks