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

Matthew Cornell
Matthew Cornell
1,304 Points

Finally, my story is finished...

Here it is....

var nounPlural = prompt("Please type a noun in the plural contect. For example, bunnies, pigs, cars, etc."); var adjectiveNounPlural = prompt("Now type in an adjective for your plural noun. hopping, flying, popping, etc."); var nameMainCharacter = prompt("Please type a name for the Main Character of the story."); var mainCharacterGender = prompt("Is your character a man, or woman? "); var nameAnimal = prompt("What is the name of an animal you like?"); var animalAdjective = prompt("Please type a word that describes your animal."); var animalAction = prompt("What something your animal is likely to do when surprised? Please type this word in the -ing form."); var adjectiveMainCharacter = prompt("What is the best word that describes your Main Character? For example, Brave, handsome, silly, crazy, etc."); var mainCharacterAction = prompt("What do you do when you are scared?"); var animalEmotion = prompt("Please type a word that describes someone's mindset. For example, crazy, intelligent, tactful, instinctful, goofy, etc"); var animalMovementAction = prompt("Please type a kind of movement."); var mainCharacterReaction = prompt("How do you react when you are surprised?"); var mainCharacterThought = prompt("What is something you have been thinking about doing recently?"); var mainCharacterHomeTown = prompt("What's the name of your home town."); var mainCharacterSaying = prompt("What is one of your favorite quotes or sayings?");

document.write("In a time of " + adjectiveNounPlural + " " + nounPlural + " one " + mainCharacterGender + " stands apart, looking for the answers to the questions no one dares to ask. This is the tale of the " + adjectiveMainCharacter + nameMainCharacter + "!!!!");

document.write("In the middle of a field, you find yourself, dazed and confused. The scene slowly comes into focus, lit by the full moon. You reach your hand to your head, trying to get a grip over what has happened. You wince, as pain shoots from your head. There is blood on your hand. What is happening?");

document.write("You slowly rise to your feet, your legs having little energy in them and you fall back down to your knees. You look around yourself. You don't know where you are, but you know you don't want to stay.");

document.write("The first thing you see is a " + nameAnimal + " " + animalAction + " off in the distance. It seems familar, yet " + animalAdjective + ". It notices you, and you " + mainCharacterAction + ". It stares at you for a moment, not moving a muscle. You think to yourself, 'This thing must be " + animalEmotion + "!' Suddenly, the creature " + animalMovementAction + " and you quickly formulate a plan. You know you must " + mainCharacterThought + ", but you don't have time. In an instant, you " + mainCharacterAction + ", just missing the " + nameAnimal + ". You breathe a sigh of relief. That was close.");

document.write("Slowly you start to realize, you are not in " + mainCharacterHomeTown + " anymore. You look at your hands, trembling. And in pain and anguish you cry out " + mainCharacterSaying + "!!");

3 Answers

Matthew Cornell
Matthew Cornell
1,304 Points

Dangit! BACK ticks...

Last time, I promise...

var nounPlural = prompt("Please type a noun in the plural contect. For example, bunnies, pigs, cars, etc.");
var adjectiveNounPlural = prompt("Now type in an adjective for your plural noun. hopping, flying, popping, etc.");
var nameMainCharacter = prompt("Please type a name for the Main Character of the story.");
var mainCharacterGender = prompt("Is your character a man, or woman? ");
var nameAnimal = prompt("What is the name of an animal you like?");
var animalAdjective = prompt("Please type a word that describes your animal.");
var animalAction = prompt("What something your animal is likely to do when surprised? Please type this word in the -ing form.");
var adjectiveMainCharacter = prompt("What is the best word that describes your Main Character? For example, Brave, handsome, silly, crazy, etc.");
var mainCharacterAction = prompt("What do you do when you are scared?");
var animalEmotion = prompt("Please type a word that describes someone's mindset. For example, crazy, intelligent, tactful, instinctful, goofy, etc");
var animalMovementAction = prompt("Please type a kind of movement.");
var mainCharacterReaction = prompt("How do you react when you are surprised?");
var mainCharacterThought = prompt("What is something you have been thinking about doing recently?");
var mainCharacterHomeTown = prompt("What's the name of your home town.");
var mainCharacterSaying = prompt("What is one of your favorite quotes or sayings?");

document.write("In a time of " + adjectiveNounPlural + " " + nounPlural + " one " + mainCharacterGender + " stands apart, looking for the answers to the questions no one dares to ask. This is the tale of the " + adjectiveMainCharacter + nameMainCharacter + "!!!!");

document.write("In the middle of a field, you find yourself, dazed and confused. The scene slowly comes into focus, lit by the full moon. You reach your hand to your head, trying to get a grip over what has happened. You wince, as pain shoots from your head. There is blood on your hand. What is happening?");

document.write("You slowly rise to your feet, your legs having little energy in them and you fall back down to your knees. You look around yourself. You don't know where you are, but you know you don't want to stay.");

document.write("The first thing you see is a " + nameAnimal + " " + animalAction + " off in the distance. It seems familar, yet " + animalAdjective + ". It notices you, and you " + mainCharacterAction + ". It stares at you for a moment, not moving a muscle. You think to yourself, 'This thing must be " + animalEmotion + "!' Suddenly, the creature " + animalMovementAction + " and you quickly formulate a plan. You know you must " + mainCharacterThought + ", but you don't have time. In an instant, you " + mainCharacterAction + ", just missing the " + nameAnimal + ". You breathe a sigh of relief. That was close.");

document.write("Slowly you start to realize, you are not in " + mainCharacterHomeTown + " anymore. You look at your hands, trembling. And in pain and anguish you cry out " + mainCharacterSaying + "!!");

Thank you!

Julian Aramburu
Julian Aramburu
11,368 Points

Hey Matthew! When pasting code in the forums try to use the Markdown Cheatsheet so you can format your code in a way it is readable by others :)! In the current state it gets pretty messy and difficult to read!

Cheers!

Hey, Can you tell me how to "use the Markdown Cheatsheet" as you mentioned in your comment above?

Matthew Cornell
Matthew Cornell
1,304 Points

Heather, you add three ` in a row before and after your code.

Hope this helps

Matthew Cornell
Matthew Cornell
1,304 Points

Oops...

Lets try this again.

'''var nounPlural = prompt("Please type a noun in the plural contect. For example, bunnies, pigs, cars, etc."); var adjectiveNounPlural = prompt("Now type in an adjective for your plural noun. hopping, flying, popping, etc."); var nameMainCharacter = prompt("Please type a name for the Main Character of the story."); var mainCharacterGender = prompt("Is your character a man, or woman? "); var nameAnimal = prompt("What is the name of an animal you like?"); var animalAdjective = prompt("Please type a word that describes your animal."); var animalAction = prompt("What something your animal is likely to do when surprised? Please type this word in the -ing form."); var adjectiveMainCharacter = prompt("What is the best word that describes your Main Character? For example, Brave, handsome, silly, crazy, etc."); var mainCharacterAction = prompt("What do you do when you are scared?"); var animalEmotion = prompt("Please type a word that describes someone's mindset. For example, crazy, intelligent, tactful, instinctful, goofy, etc"); var animalMovementAction = prompt("Please type a kind of movement."); var mainCharacterReaction = prompt("How do you react when you are surprised?"); var mainCharacterThought = prompt("What is something you have been thinking about doing recently?"); var mainCharacterHomeTown = prompt("What's the name of your home town."); var mainCharacterSaying = prompt("What is one of your favorite quotes or sayings?");

document.write("In a time of " + adjectiveNounPlural + " " + nounPlural + " one " + mainCharacterGender + " stands apart, looking for the answers to the questions no one dares to ask. This is the tale of the " + adjectiveMainCharacter + nameMainCharacter + "!!!!");

document.write("In the middle of a field, you find yourself, dazed and confused. The scene slowly comes into focus, lit by the full moon. You reach your hand to your head, trying to get a grip over what has happened. You wince, as pain shoots from your head. There is blood on your hand. What is happening?");

document.write("You slowly rise to your feet, your legs having little energy in them and you fall back down to your knees. You look around yourself. You don't know where you are, but you know you don't want to stay.");

document.write("The first thing you see is a " + nameAnimal + " " + animalAction + " off in the distance. It seems familar, yet " + animalAdjective + ". It notices you, and you " + mainCharacterAction + ". It stares at you for a moment, not moving a muscle. You think to yourself, 'This thing must be " + animalEmotion + "!' Suddenly, the creature " + animalMovementAction + " and you quickly formulate a plan. You know you must " + mainCharacterThought + ", but you don't have time. In an instant, you " + mainCharacterAction + ", just missing the " + nameAnimal + ". You breathe a sigh of relief. That was close.");

document.write("Slowly you start to realize, you are not in " + mainCharacterHomeTown + " anymore. You look at your hands, trembling. And in pain and anguish you cry out " + mainCharacterSaying + "!!"); '''