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
Ryan Nettleship
3,104 PointsJust started "JavaScript Foundations" course and i just don't understand a thing..
So i've started the JavaScript Foundations course with "Jim Hoskins" and i understand what he's talking about and how some code generates different outcomes. What i'm struggling to understand how this in any way would benefit a website... why would i want to implement in my website stuff about the console which you have to manually access anyway? Maybe i need to go further into the course to understand what this actually benefits to a website, yet so far after about 2 hours studying it, all i've learnt is that Console is basically a calculator which is really technical to use. Or that you have to define certain names and when you type in something it'll give you "X" name. Sorry if i'm being silly here, just really frustrated because compared to HTML and CSS course this feel like it's a waste of time in terms of creating a website.
3 Answers
Jordan Jesse
13,243 PointsHey Ryan, While HTML and CSS are great for formatting your content and presenting it, Javascript is often used to add interactivity to web sites. If you wanted to add a slider/carousel to your page, a modal form, or drop down menus, then Javascript would be an excellent way to do that. It can be tough to see the use case for a new language at first, but give it some time and you will probably recognize ways in which you would implement Javascript in your own designs. Of course, if all you want/need to build are brochure websites or simple pages without interactive elements then HTML and CSS will certainly get that job done. Hope that helps!
Jesus Mendoza
23,289 PointsJavaScript Foundation is a course to help you understand the language and become familiar to it. If you already know how it works you can skip to Interactive Web Pages with JavaScript or jQuery Basics and you will see how does JavaScript works
James K Doherty
Courses Plus Student 5,831 PointsHi Ryan, the console is there to view what is going on with your code. It is an essential tool in debugging or simply to see if the JavaScript you've written has any errors.
Ryan Nettleship
3,104 PointsRyan Nettleship
3,104 PointsThank you, i guess i was hoping for this kind of answer, something which says "don't worry, in time it'll become more clear" for some re-assurance i guess :) Thank you again!