Skip to content

Commit cfad038

Browse files
authored
Update calc.js
1 parent d0d85f5 commit cfad038

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

calc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
console.log("Javascript Calculator Made by Harsh Trivedi\nhttps://harsh98trivedi.github.io")
22

3-
document.getElementById('answer').readOnly = true;
3+
document.getElementById('answer').readOnly = true; //set this attribute in Html file
44
let screen = document.getElementById('answer');
55
buttons = document.querySelectorAll('button');
66
let screenValue = '';
@@ -75,4 +75,4 @@ document.addEventListener("keydown", function(event) {
7575
screenValue = "";
7676
screen.value = screenValue;
7777
console.clear();
78-
}
78+
}

0 commit comments

Comments
 (0)