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 trialToryan Reed
1,750 Pointswhen 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?");
7 Answers
Alexander Davison
65,469 PointsDid you save your file? When in the Workspace, press CTRL+S on Windows and CMMD+S on a Mac.
nicolabell
18,212 PointsThis was this issue I was having - the file was not saving.
Toryan Reed
1,750 Pointsyes I've saved the file in the workspace and when I go to preview it I don't have no feedback
Alexander Davison
65,469 PointsAre you pressing the eye icon to the top-right corner of the workspace?
Toryan Reed
1,750 Pointsyes I press the eye at the top-right hand corner?
Keith Warren
4,797 PointsHi Toryan - Did you find a solution? If not, please copy&paste the code you are trying to preview. Thanks!
Keith Warren
4,797 PointsNervermind. I see your code. Are you using Google Chrome?
Marius Totea
2,239 PointsDid you put the name of your js file inside your html file using <script src="your_name.js"></script> ?
Sun Min
2,941 PointsI 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..
Adam VanDusen
6,539 PointsAdam VanDusen
6,539 PointsYour 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);