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

Toryan Reed
Toryan Reed
1,750 Points

when I preview my workspace I'm not getting no response . Am I doing the story the correct way?

var firstNoun = prompt ("GeekHotel"); var firstVerb = prompt ("running"); var firstAdjective = prompt (" running like a vegas show"); alert("Are you done?");

Adam VanDusen
Adam VanDusen
6,539 Points

Your prompt should be asking a question. var noun1 = prompt("Please enter a noun"); Then when you have all of the variables combine them and output to the screen.

var statement = noun1 + " Hello " + verb1 + " to the woods " + noun2 + " who dare " + adj + " what car."; document.write(statement);

7 Answers

Did you save your file? When in the Workspace, press CTRL+S on Windows and CMMD+S on a Mac.

This was this issue I was having - the file was not saving.

Toryan Reed
Toryan Reed
1,750 Points

yes I've saved the file in the workspace and when I go to preview it I don't have no feedback

Are you pressing the eye icon to the top-right corner of the workspace?

Toryan Reed
Toryan Reed
1,750 Points

yes I press the eye at the top-right hand corner?

Keith Warren
Keith Warren
4,797 Points

Hi Toryan - Did you find a solution? If not, please copy&paste the code you are trying to preview. Thanks!

Keith Warren
Keith Warren
4,797 Points

Nervermind. I see your code. Are you using Google Chrome?

Marius Totea
Marius Totea
2,239 Points

Did you put the name of your js file inside your html file using <script src="your_name.js"></script> ?

Sun Min
Sun Min
2,941 Points

I just tried

var adjective = prompt("Please type an Adjective!");

var verb = prompt("Please type a Verb!");

var noun = prompt("Please type a Noun!");

alert("Ready for a result?")

var message = "There once was a " + adjective ;

message += " Programmer who wanted to use JavaScript to " + verb;

message += " the " + noun;

document.write(message);

this worked! I'm not sure I did right.. but if it helps you..