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

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
231,268 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
231,268 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.