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 am also having trouble with the variable challenge. Here's my solution but the code isn't running. Please help

var noun = prompt( "Insert a noun here"); var verb = prompt( "Insert a verb here"); var adjective = prompt( "Insert a adjective here"); alert( " Your learnng Javascript "); document.write( " I see great things in your future " + noun + verb + "Keep it up" + adjective);

1 Answer

Steven Parker
Steven Parker
231,271 Points

You could make the output look a bit prettier, but the code runs just fine as-is.

How are you running it? If you're using the workspaces, you can make a snapshot of your workspace and post the link to it here to facilitate a more complete analysis.

Ok here's the link https://w.trhou.se/p1unz1gier

Steven Parker
Steven Parker
231,271 Points

Aha! The workspace filesystem is case-sensitive, and your script tag is looking for "story.js" (with lower-case "s") but your actual filename is "Story.js" (with capital "S").

It worked thanks so much Steven