Back to lesson
1. How should we clear the output message with the Next Card button?
document.getElementById("output").innerHTML = "";
Have the button reload the whole page
2. How should we clear the form input field with the Next Card button?
document.getElementById("answer").innerHTML = "";
document.getElementById("answer").value = "";
3. What do we need to do to our H1 tag before we can output new random numbers programmatically?
Add an id="numbers" to the H1 tag
Generate two new random numbers with JSON
Give it a label
Back to the top
© 2017 GoSkills Ltd.
Skills for career advancement