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 Working with Strings Variables and Strings Challenge Solution

Just to be sure

https://w.trhou.se/hyw6c3dzgs … This is a snapshot of my workspace i noticed in the video guil used some different techniques compared to mine. Mine still produces the same result if I'm not mistaken, I just want to make sure my code is good and acceptable.

2 Answers

Cameron Childres
Cameron Childres
11,820 Points

Hey Haki,

Your code looks great and does exactly what was asked of you -- you've captured input in to variables, used those variables to construct a story, and displayed that story as a paragraph in the main element. The only differences I see between your code and Guil's are the variable names and the words in the story which is completely normal.

It doesn't matter how you solve the problem set, there are many ways to execute program solution. Your code looks good by the way