// Tip:
// you may need to use functions like "prompt" and "alert"
//
// - https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm
// - https://developer.mozilla.org/en-US/docs/Web/API/Document/write
// - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else
//
const answer = confirm('Do you want to join the Dark Side?')
if (answer === true) {
document.write(`
<img
src="https://media.giphy.com/media/26gsmQ7ABO9RaASFq/giphy.gif"
width="100%"
/>
`)
} else {
document.write(`
<img
src="https://media.giphy.com/media/JDnaQ8qn0Myuk/giphy.gif"
width="100%"
/>
`)
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.