Title: Divide by zero solution · Issue #46 · WebDevSimplified/Vanilla-JavaScript-Calculator · GitHub
Open Graph Title: Divide by zero solution · Issue #46 · WebDevSimplified/Vanilla-JavaScript-Calculator
X Title: Divide by zero solution · Issue #46 · WebDevSimplified/Vanilla-JavaScript-Calculator
Description: case '÷': if(curr == '0') { compute = '0'; } else{ compute = prev / curr; } break; Cannot add an error message because for divide by zero as we are using getDisplayNumber() method to edit current operand. Hope this works
Open Graph Description: case '÷': if(curr == '0') { compute = '0'; } else{ compute = prev / curr; } break; Cannot add an error message because for divide by zero as we are using getDisplayNumber() method to edit current o...
X Description: case '÷': if(curr == '0') { compute = '0'; } else{ compute = prev / curr; } break; Cannot add an error message because for divide by zero as we are using getDisplayNumber() ...
Opengraph URL: https://github.com/WebDevSimplified/Vanilla-JavaScript-Calculator/issues/46
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Divide by zero solution","articleBody":"`case '÷':\r\nif(curr == '0') {\r\n compute = '0';\r\n}\r\nelse{\r\n compute = prev / curr;\r\n}\r\nbreak;`\r\n\r\nCannot add an error message because for divide by zero as we are using getDisplayNumber() method to edit current operand. Hope this works","author":{"url":"https://github.com/khushboo-tolat","@type":"Person","name":"khushboo-tolat"},"datePublished":"2024-07-18T14:24:03Z","url":"https://github.com/WebDevSimplified/Vanilla-JavaScript-Calculator/issues/46"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a116ba45-9d6d-f189-e5c6-7a2a71e464ad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8946:CC1A4:10A506E:1531AC2:6B011443 |
| html-safe-nonce | 25c93ab5f323f1fd0f76cda4b821c82777bd0d1c936120c971519d237e0a2444 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTQ2OkNDMUE0OjEwQTUwNkU6MTUzMUFDMjo2QjAxMTQ0MyIsInZpc2l0b3JfaWQiOiIzMzA5ODg1NTczMTUzNDk0MDgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 38af8dfe7069bfb7d2fc7ad38e44dfc9a4f450f9fbbd086a94add597168b4f45 |
| hovercard-subject-tag | issue:2416546625 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/WebDevSimplified/Vanilla-JavaScript-Calculator/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f7da54589de58e72cf63b456f618652e9b45b1c85f1f0c64e43523a792c907b8/WebDevSimplified/Vanilla-JavaScript-Calculator/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7da54589de58e72cf63b456f618652e9b45b1c85f1f0c64e43523a792c907b8/WebDevSimplified/Vanilla-JavaScript-Calculator/issues/46 |
| og:image:alt | case '÷': if(curr == '0') { compute = '0'; } else{ compute = prev / curr; } break; Cannot add an error message because for divide by zero as we are using getDisplayNumber() method to edit current o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | khushboo-tolat |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/WebDevSimplified/Vanilla-JavaScript-Calculator git https://github.com/WebDevSimplified/Vanilla-JavaScript-Calculator.git |
| octolytics-dimension-user_id | 39717099 |
| octolytics-dimension-user_login | WebDevSimplified |
| octolytics-dimension-repository_id | 180275595 |
| octolytics-dimension-repository_nwo | WebDevSimplified/Vanilla-JavaScript-Calculator |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 180275595 |
| octolytics-dimension-repository_network_root_nwo | WebDevSimplified/Vanilla-JavaScript-Calculator |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width