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 trialRasean Dilligard
401 PointsI'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
Rasean Dilligard
401 Points''' 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) '''
1 Answer
Steven Parker
231,275 PointsNothing 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.
Steven Parker
231,275 PointsSteven Parker
231,275 PointsPlease 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?