Use variable in 'document.getElementById("…")' for IDs to reduce duplicated code – Html
I have written a dice roller utility for a tabletop RPG in JavaScript. Before I add more functionality to it, I would like to simplify the code by simplifying functions to remove unnecessary code. When using the roller, some settings…