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

Javascript exercises?

Hello I've finished JavaScript Basics and Loops (still haven't done Arrays or Objects yet). Before moving forward I would love to have some exercises or challenges to solidify what I know. Are there any resources in Treehouse or outside like that? I'm not talking another course like on CodeAcademy, I mean just simple challenges. Ideas?

Peter Campbell
Peter Campbell
18,085 Points

You could check these out. I would try to complete them and only look at the answer if you get stuck.

http://www.teaching-materials.org/javascript/exercises/forloops.html

http://www.worldbestlearningcenter.com/index_files/java-loops-for-exercises.htm

You could try googling "loops exercises" or "javascript loops excercises".

One final tip when learning programming is to write out your solution in English before solving it in code.

I got a challenge: iterate through a array that holds:

var arrayToIterate = "abcdefghijklmnopqrstuvwxyz".split(""); // this makes an array of the alphabet

// Complete challenge. Use a "for in" loop. If you don't know what a "for in" loop is, look it up.

// ???
    console.log(/* variable's name */);
// ???

That is a good practice for researching resources. Happy coding! ~xela888

2 Answers

Thank you everyone, great ideas. Interesting concept to think about coding in English first, how cool.

A great way to learn something is to take something your are interested in and use the tools to make something about that thing. You know loops and functions, variables and math. So think about something you are interested in and create something simple with the tools you have.