We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0d85f5 + cfad038 commit 925cc00Copy full SHA for 925cc00
1 file changed
calc.js
@@ -1,6 +1,6 @@
1
console.log("Javascript Calculator Made by Harsh Trivedi\nhttps://harsh98trivedi.github.io")
2
3
-document.getElementById('answer').readOnly = true;
+document.getElementById('answer').readOnly = true; //set this attribute in Html file
4
let screen = document.getElementById('answer');
5
buttons = document.querySelectorAll('button');
6
let screenValue = '';
@@ -75,4 +75,4 @@ document.addEventListener("keydown", function(event) {
75
screenValue = "";
76
screen.value = screenValue;
77
console.clear();
78
- }
+ }
0 commit comments