Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/petsamuel/calculator


https://github.com/petsamuel/calculator

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

Calculator


Github top language

Github language count

Repository size

License

Github issues

Github forks

Github stars


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

 

Back to top