Making a reset button that reset a javascript if/else statement answer
I made an If/Else statement that would tell if 10 equaled 5 and it would give the answer. I was wondering if i could make a reset to reset the answer given.
heres my code
Code:
html
<!DOCTYPE html> <html> <body> </form>
<p>Click the button:</p>
<button onclick="myFunction()">Try it</button> <p id="demo"></p>
JS