We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89aa47b commit 25dbecfCopy full SHA for 25dbecf
index.html
@@ -35,8 +35,8 @@
35
<div data-value=")" data-operator class="child operator">)</div>
36
</div>
37
<ul class="computation-history">
38
+ <button class="clear-history-btn">clear history</button>
39
-
40
</ul>
41
42
index.js
@@ -4,6 +4,8 @@ let screen = document.querySelector("[data-screen]");
4
const historyBtn = document.querySelector(".history-btn");
5
const slidingPart = document.querySelector(".sliding-part");
6
const operators = document.querySelectorAll("[data-operator]");
7
+const clearHistoryBtn = document.querySelector(".clear-history-btn");
8
+
9
10
11
const operatorRegex = /[\/*\-+]/;
0 commit comments