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

Eric Castillo
Eric Castillo
6,427 Points

.value

.value was a method that I haven't seen before this video (Getting and Setting Text with textContent and innerHTML). I feel like new methods always keep appearing out of nowhere then I have to look them up and see what they do. Is there a list of important methods that are fundamental that I should learn or will I always need to reference the internet for what they mean. If the latter, how do I know what methods to use for different circumstances?

1 Answer

I think your thoughts on this phenomenon are correct. I often must go to MDN (Mozilla Developer Network) and research a new method and often times the documentation still doesn't fully explain it in a way that makes sense to me. It's usually after I've tried to use the method a few times that it becomes clear what it can or cannot do. The .value or .val() (jQuery) methods are definitely something you'll use in the projects coming up. My advice would be to make a list of the methods or coding practice mentioned in the course and then make an effort to do some research later on it. As for an end all list of most valuable functions... it makes more sense figuring out what each of these do when you actually plan to use them in your code. And they are always adding new ones. A never-ending journey!

Eric Castillo
Eric Castillo
6,427 Points

Yes, I figured it'd be more of a progressive list I'll be building as I go along. Thanks for this!