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").value = "";
document.getElementById("answer").innerHTML = "";
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