<script>
function addToDisplay(value) {
document.getElementById('display').value += value;
}
function clearDisplay() {
document.getElementById('display').value = '';
}
function calculate() {
let expression = document.getElementById('display').value;
let result = eval(expression); // Using eval for simplicity (not recommended for production due to security risks)
document.getElementById('display').value = result;
}
</script>
-
Notifications
You must be signed in to change notification settings - Fork 0
This is full working calculator created by MUHAMMAD SAQLAIN SHOUKAT.
SaqlainShoukat/Saqlain-s-Calculator-
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This is full working calculator created by MUHAMMAD SAQLAIN SHOUKAT.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published