Open zacharyweston opened 8 years ago
Nice easter egg reference to Douglas Adams. :smiley: The JavaScript code looks great, but I do notice a couple HTML errors:
DOCTYPE
rather than after.html
tag apart from the head
and body
. A script
tag is a rare element that can actually go into either, though most typically at the very end of the body
, so I would move your script
tag there.Got it, so typically the script would just be in a separate file, right? I updated the code and pushed it, and the new URL is http://uneven-level.surge.sh/
Yes, all the JavaScript in most websites will be in a separate file. For this lesson though - and especially considering that the JavaScript is the app - inline is just fine.
And... everything looks perfect now! :shipit:
Hey @chrisvfritz, can you take a look at this? It's hosted here and meets the following project criteria:
prompt
to collect choices from the user (the entire story can take place in dialog boxes, so yourbody
element could be empty for this project)if
andelse
to branch the story, depending on user choices