"Java Objects (Retired)" was retired on January 31, 2017. You are now viewing the recommended replacement.

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

Learning JS

Hi, I just finished the JS basic course on site and I must admit, I dont think I now understand JavaScript any more then prior to this course. For example, I dont have an idea how to limit input field in HTML for accepting only Letters, and the other field to accept only numbers, I have absolutely no idea how to make JS affect certain elements of my HTML.

What to do next? In the basic course i completed all challenges, but i still dont see the practical use of it.

What course to take next, I want to understand JS, and for me it is easier to learn with hands-on approach - maybe there is a games or challenges, like a dummy site which requeres a lot of js code to make it work? Anything is welcome guys.

function helpVladToLearnJS() {alert('I know how to help you!');} helpVladToLearnJS();
Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

You might try https://www.freecodecamp.com/ . It starts off with HTML and CSS then goes to JavaScript.
The plus side is that everything in there is a code challenge and it's free. The downside is that there are no videos to watch. So if you learn well by reading and applying what you've read, it might be of help. Then again, it costs nothing to try! :)

Jenny, thanks, i signed up! Will do it, need this practice practice practice :)

2 Answers

I reccomend the jQuery Basics course. If nothing else, it will definitely teach you how to make JS affect certain elements in your HTML.

Thanks, will continue with the Beginner courses JS here, hope I improve!

You use regex for that.

Example code is below:

http://www.w3schools.com/tags/att_input_pattern.asp

for inputs you also want to sanitize the inputs. This is php so it's the backend engineers job to do that.

http://stackoverflow.com/questions/3645131/what-is-a-good-method-to-sanitize-the-whole-post-array-in-php

The reason behind that is prevent hackers to hack into your system with javascript to get into you sql database.

Also probably install SSL to encrypt your websites.

Regex but this for python, but you can apply the same concepts elsewhere. Reg ex is similar

https://teamtreehouse.com/library/regular-expressions-in-python

J, thanks for it! regex wasn't explain or even mentioned (I think) in the js basic course, I really cant see a practical implementation of what I saw there in that course, that's frustrating, wasn't like that with CSS and HTML.

But of course I do know that I don't see it useful yet as I dont understand it, so hence cant imagine how to apply it