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

JavaScript

Why shouldI input data into my website?

Bear with me alright. I know HTML and know the gysts of CSS. And it's been said that good websites include Javascript because it provides cool features. However, I'm failing to learn the "awesomeness" of Javascript while going through the project "Introduction to Programming." I mean, all I'm doing is putting data into the console. So, what? May YOU please enlighten me why the input of data is important for a website? You may include not only JavaScript but also PhP, MySQL, Rube and w/e programming languages there are- Python. Thank-you!

1 Answer

What our learning are the very fundamental pieces of Javascript. Objects, strings, statements, functions….you're using the console to physically see the results instantly. What your learning putting things into the console is not really how you'll use JS. It's boring to do.

Here's a crumby metaphor. Javascript is a car. Lots of small moving parts, some parts to some very distinct things over and over again. Putting all the parts together, you have a car you can drive, and it's fun to! But right now, you're learning where the gas pedal is, and that it makes you go faster in a straight line. You're learning where the brake pedal is, you're learning where the gear shifter is, and all your doing is sitting there shifting from park to drive, and back to park over and over….never actually driving.

Once you learn all of these things, and how to do them, you'll put it all together and be driving the car that is Javascript.

Kevin Korte - I think that's a pretty good metaphore for starting to learn programming :grinning:

Thanks! I like metaphors!