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

I need to create a function call myFavPizza that accepts on parameter food. But when passed with pizza it should return.

create a function called "myFavFood" that accepts one parameter, "food" When passed 'pizza' myFavFood should return 'I love pizza'. When 'hot pockets' is passed, return 'hot pockets woo'. Finally, if food matches neither 'pizza' nor 'hot pockets', return 'I have bad taste in foods'

First, show proof that you've made an effort yourself. Then if you get stuck somewhere come back for help. Getting all your answers by being a help-vampire doesn't improve your skills.

var loop = 1; while ( ) { document.write("<p>Now in loop #" + counter + "</p>"); counter += 1; }

I just need someone to teach me.

Hi, Jake. Could you tell me which lesson you're on... maybe post a link to the page? I'll see if I can help.

Hi, Jake. Do you still need help?

1 Answer

If you need someone to teach you, this is the perfect place to start:

http://teamtreehouse.com/library/javascript-basics

I passed that already.