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 Basics (Retired) Storing and Tracking Information with Variables The Variable Challenge

Casey Catron
Casey Catron
1,831 Points

My Story Maker Game! Please review and let me know how I did for my first trial at coding.

3 Answers

Casey Catron
Casey Catron
1,831 Points

Thank you both! I'm still working so I'll be working to clean up the code soon and getting better everyday.

Thanks again!

I think that is great for a first attempt!

As you learn more about programming in general you'll be able to make some improvements to the way you've written your code that will make it easier for you to read and change later.

Using arrays would be a big improvement to your current game.

Instead of having a different variable for every noun, adjective, and so on, you could have an array for each type of word you're asking the user for..

Konrad Pilch
Konrad Pilch
2,435 Points

I forogt what an adjective is and noun so i just wrote what i saw. But something interesting at the end :DD

"A vacation is when you take a trip to some a place with your story family. Usually you go to some place that is near a/an money or up on a/an game. A good vacation place is one where you can ride dog or play LoL."

Riding the dog? :D haha that was in animal box :D

My grandfather was riding a bull.
My dad was riding a hourse.
ANd im riding a 'dog' :D

Lol but overall that game is cool.

BUt id say instead of making it as a prompt, a input field would be better because prompts are annojing as hell xd