Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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