New coding words
functionidelementdocumenttextContent
Aim: Use JavaScript to change text on a webpage.
functionidelementdocumenttextContentThis code creates a button that uses JavaScript to find a paragraph by its ID and replace the paragraph’s message.
Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.
Select Run my code to see your webpage here.
This code creates a styled joke card whose button uses JavaScript to reveal the joke’s answer.
Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.
Select Run my code to see your webpage here.
Complete these activities in the mini-project editor above. After each change, select Run my code to check your webpage.
Select Download my work and save the file as week_10_joke_revealer.zip. Extract this .zip file to keep your HTML, CSS and JavaScript files together, then open index.html in a browser to view your webpage.

Your answers are checked in this browser and are not submitted.
Finished Web Adventures Week 10?
Your completion and mood are saved only in this browser.