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

Billy Gibson Jr
PRO
Billy Gibson Jr
Pro Student 678 Points

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
203,226 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.

Steven Parker
Steven Parker
203,226 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").