We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75fa997 commit 9a42855Copy full SHA for 9a42855
1 file changed
index.ts
@@ -176,7 +176,7 @@ function deleteEverythingFromScreen(button: string) {
176
// The shift() method of Array instances removes the first element from an array and returns
177
// that removed element. This method changes the length of the array.
178
179
-minus.addEventListener("click", toggleSign);
+minus.addEventListener("click", () => toggleSign("minus"));
180
181
// function toggleSign(button) {
182
// let value = Number(data.join(""))
@@ -196,7 +196,7 @@ minus.addEventListener("click", toggleSign);
196
// }
197
198
199
-function toggleSign(button: any) {
+function toggleSign(button: string): void {
200
let value = Number(data.join(""));
201
if (button === "minus") {
202
if (value > 0) {
0 commit comments