Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petsamuel/calculator
https://github.com/petsamuel/calculator
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/petsamuel/calculator
- Owner: Petsamuel
- Created: 2022-07-05T04:17:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-09T10:25:08.000Z (over 2 years ago)
- Last Synced: 2023-03-05T20:09:15.205Z (over 1 year ago)
- Language: CSS
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Calculator
About |
Features |
Technologies |
Requirements |
Starting |
License |
Author
## :dart: About ##
Basic Js calculator with Ui, Challenge by Frontend Mentor
## :sparkles: Features ##
:heavy_check_mark: Themes;\
:heavy_check_mark: Calculates;\
:heavy_check_mark: Responsive;## :rocket: Technologies ##
The following tools were used in this project:
- [html](https://google.com/html/)
- [javaScript](https://google.com/javascript/)
- [CSS](https://google.com/css)## :checkered_flag: Starting ##
```javascript
//the logic behind the calculations
try {var numbers = (props) => {
userInt.value += (props);
}
var operators = (params) => {
userInt.value += (params);
}DEL.addEventListener('click', () => {
result = (userInt.value);
len = result.length;
deleteNum = result.substring(0, len - 1)
userInt.value = deleteNum
})submit.addEventListener('click', () => {
result = eval(userInt.value);
console.log(result);userInt.value = result;
})
} catch (error) {
console.log(`oops internal server error`, error);
}```
## :memo: License ##
This project is under license from MIT. For more details, see the [LICENSE](LICENSE.md) file.
Made with :heart: by PETERs SAMUEL