https://github.com/hacimertgokhan/calculator
Calculator project, I did that on my free time.
https://github.com/hacimertgokhan/calculator
calculator html-calculator javascript-calculator simple-calculator-js
Last synced: 7 months ago
JSON representation
Calculator project, I did that on my free time.
- Host: GitHub
- URL: https://github.com/hacimertgokhan/calculator
- Owner: hacimertgokhan
- Created: 2023-10-21T07:39:47.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-31T12:35:28.000Z (over 1 year ago)
- Last Synced: 2025-02-01T23:37:51.266Z (9 months ago)
- Topics: calculator, html-calculator, javascript-calculator, simple-calculator-js
- Language: SCSS
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
About Project
In that project, I did a simple calculator can do Sqrt, Any power of number, And factorial stuff.
Some methods
Factorial
```
// Factorial
const number = result.innerHTML;
let a = 1;
for(let i = 1; i<=number; i++) {
a = (a*i);
}
result.innerHTML = `${a}`;```
Power of Number
```
// Pofn
let a = prompt('What power of the number do you want to get?');
let num = Number(a);
let b = Math.pow(result.innerHTML, num);
result.innerHTML = `${b}`;```
Sqrt
```
// Sqrt
const problem = result.innerHTML;
let a = Math.pow(problem, 2);
result.innerHTML = `${a}`;```
Image(s)

# Forks
[Developed by CParthur1](https://github.com/cparthur1/iOSCalc_Replacer)