Add reset button
This commit is contained in:
@@ -31,3 +31,7 @@ for (let i = 1; i < 11; i++) {
|
||||
button.onclick = () => composeDigit(digit);
|
||||
keypad.appendChild(button);
|
||||
}
|
||||
const reset = document.createElement('button');
|
||||
reset.innerText = 'C';
|
||||
reset.onclick = resetCode;
|
||||
keypad.appendChild(reset);
|
||||
|
Reference in New Issue
Block a user