We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed6145f commit 9722fc1Copy full SHA for 9722fc1
index.js
@@ -60,11 +60,8 @@ btns.forEach((btn) => {
60
if (data.slice(-1)[0] === ".") {
61
data.pop();
62
}
63
- if (buttonValue === "*") {
64
- buttonValue = "x";
65
- } else if (buttonValue === "/") {
66
- buttonValue = "÷";
67
- }
+ buttonValue === "*" ? buttonValue = "X" : buttonValue === "/" ? buttonValue = "÷" : buttonValue;
+
68
data.push(buttonValue);
69
screen.innerText = data.join("");
70
0 commit comments