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 trialSchweine FEin
2,671 PointsMy little version of the StoryMaker :P
Here is my little version of the StoryMaker : https://w.trhou.se/q5ov4wq8bw (Snapshot of the workspace but it seems this way you can't use the preview?) https://teamtreehouse.com/workspaces/5695002# (The normal workspace)
Tell me your story's :D
1 Answer
Jeff Ward
8,978 PointsYou can add code like this: use ``` to add code
My Story:
alert("The Game has begun! Please press 'OK' to proceed!! If you dare... ");
var noun1 = prompt("Please enter your first Noun");
var noun2 = prompt("Please enter your SECOND noun");
var verb1 = prompt("Please enter your first Verb");
var verb2 = prompt("Please enter your SECOND Verb");
var story = "The" + noun1 + "Is a very docile creature. It is not what it appears to be... The moment you look away it will " + verb1 +" at you! " + "Agh! " + noun2 + " is a different beast." + noun2 + "will look at you then "+ verb2 + " at you!";
document.write(story);
alert("The game is over, you survived!");
Schweine FEin
2,671 PointsYes, I know, but that way you would need to copy it somewhere and stuff, that way seemed better for me.
Logan Brooks
5,936 PointsLogan Brooks
5,936 PointsVery creative! I like it. I didn't spend much time on it, as I'm not the biggest fan of JavaScript. But I think it is awesome that you were so creative with it. Keep up the good work!