Skip to content

Commit

Permalink
added Clear results code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan3-14 authored Sep 3, 2024
1 parent 10ad107 commit 70475fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions risk/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ var dice = () => {
}
var range = [1, 2, 3, 4]

var clear_results = () => {
document.getElementByID("results").innerHTML = ""
}

var capitalize = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
}
Expand Down

0 comments on commit 70475fd

Please sign in to comment.