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

Applying JavaScript to my project

Hello I am currently in the midst of learning JavaScript. I also have a project on my desk that has a deadline.

I am in the last chapter of JavaScript basics and I feel I have yet to learn anything that I can apply to my website. Is this normal? I know I need to crawl before I can walk, but I've very easily have been applying HTML and CSS already to my site.

Please advise. (any advice will do )

4 Answers

What do you need JavaScript for? Once you can narrow that down, you can then start searching and reading articles / blogs that address that specific use-case; my go-to resources are stackoverflow and w3school. In other words, it's not necessary to master JavaScript before you can begin using JavaScript.

For example, I tend to use JavaScript for basic event handling and DOM traversal and manipulation - with the help of jQuery. In fact, I pretty much learned jQuery first before understanding how to do that in vanilla JavaScript - because it's a lot easier in jQuery.

// jQuery
$("#btn").click(function() {
  console.log("button clicked");
}

// vanilla JavaScript
var button = document.getElementById("btn");
button.onclick = function() {
  console.log("button clicked");
}

If you have a specific question on JavaScript, just ask. From what I've seen, answers tend to be good when the question is focused.

Hello Zandy!

You really need to understand the basic concept behind JavaScript before you can start learn "the real" JavaScript. For example you can't jump straight to powers in math before knowing how to do multiplication.

You need to create a solid base to build on. And that's what JavaScript basics will teach you.

And HTML and CSS are very different than JavaScript or any other real programming languages. The concept behind a programming language and markup language. And first you need to wrap your head around the basics - the building blocks.

I hope this helped you even a little bit :D

I am building a web based project tracking database. Right now I have some HTML and CSS loaded.

I'll start with the easiest step first. I have a login page where users will be entering their email and password and then hitting submit. I'm thinking I'll need javascript here... please advise.

When the user clicks the submit button, are you then trying to validate their information before logging them into the Website? Presumably, their credentials are stored in a database.

So far, this isn't a JavaScript problem but rather a server side problem. You'll need a back-end like PHP/MySQL to receive client requests, query the database for valid credentials, then either log the user in or show them an error.

Yes, our IT department is working on the backend....I just needed something to present. If javascript isn't needed here, then I will just keep on working until I need it.

Thank you for your input.