Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables The Variable Challenge

I've tried everything but nothing works

I've tried to prompt, alert, console.log doc.wrt, both nothing comes up please help me out here

Steven Parker
Steven Parker
211,016 Points

Please show your code. Even better, make a snapshot of your workspace and post the link to it here.

And what is it you are trying to accomplish?

''' var adjective = prompt("Type an adjective"); var answer1 = "<h1> Hi, I am an alien from the the great planet of Merso! I am very " + adjective;

var noun = prompt("Type a Noun"); var answer2 = " I hope this does not scare you. My family lives in a " + noun;

var verb = prompt("Type a verb"); var answer3 = " It is usually crowded so I find myself " + verb + '</h1>';

alert("Beaming up story now!")

var story = answer1 + answer2 + answer3

document.write(story) '''

https://w.trhou.se/mof2a9te80

1 Answer

Steven Parker
Steven Parker
211,016 Points

Nothing like a snapshot for analyzing an issue!

On line 11 of "index.html" your code tries to load in a script file named "story.js", But the actual name of your script file is "Script.js".

You can fix it by either changing line 11 to load in the right file name, or by renaming the file. Be careful of the capital "S" if you keep the file name.