# My JavaScript Calculator - Need Feedback

**URL:** <https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132>\
**Category:** I Built This\
**Created:** [January 3, 2019, 7:02pm UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132 "2019-01-03T19:02:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkhquang](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tkhquang/32/107686_2.png) [@tkhquang](https://forum.freecodecamp.org/u/tkhquang)\
**Post date:** [January 3, 2019, 7:02pm UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132/1 "2019-01-03T19:02:00Z")

</div>

Hi, I’ve just completed this project after a couple days (yeah this one took me quite some time to build) and I’m not so sure if I do this the right way 😕 Anyway it seems to work quite ok.  
In this project I have use React and SCSS, I tried to do this without any other library or framework, also tried to avoid using the harmful `eval()`.

Any feedback would be greatly appreciated!

Note: This uses the `<bdi>` html tag so it may not work well with other browsers other than Firefox and Chrome. You may see weird behaviors of the dot, special characters and such with other browsers.

> **[FCC: JavaScript Calculator](https://codepen.io/tkhquang/full/MZONLq)**
>
> ...

---

<div class="post-metadata">

**Author:** ![pwamly](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@pwamly](https://forum.freecodecamp.org/u/pwamly)\
**Post date:** [January 3, 2019, 10:39pm UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132/2 "2019-01-03T22:39:47Z")

</div>

well done bro keep on you are doing good job

---

<div class="post-metadata">

**Author:** ![pwamly](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@pwamly](https://forum.freecodecamp.org/u/pwamly)\
**Post date:** [January 3, 2019, 11:07pm UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132/3 "2019-01-03T23:07:09Z")

</div>

thank you i am abit advanced than that and tutorial is my hobbies now… i am lucking advice and knowledge exchanges

---

<div class="post-metadata">

**Author:** ![tkhquang](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tkhquang/32/107686_2.png) [@tkhquang](https://forum.freecodecamp.org/u/tkhquang)\
**Post date:** [January 3, 2019, 11:48pm UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132/4 "2019-01-03T23:48:21Z")

</div>

> well done bro keep on you are doing good job

Thank you, I’ll try to improve this 😛

> thank you i am abit advanced than that and tutorial is my hobbies now… i am lucking advice and knowledge exchanges

Sorry mate I have no idea what you’re saying, did the second comment you replied to the wrong thread?

---

<div class="post-metadata">

**Author:** ![pwamly](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@pwamly](https://forum.freecodecamp.org/u/pwamly)\
**Post date:** [January 3, 2019, 11:51pm UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132/5 "2019-01-03T23:51:21Z")

</div>

sure wrong text…soo sory

---

<div class="post-metadata">

**Author:** ![tkhquang](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tkhquang/32/107686_2.png) [@tkhquang](https://forum.freecodecamp.org/u/tkhquang)\
**Post date:** [January 4, 2019, 10:09am UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132/6 "2019-01-04T10:09:16Z")

</div>

I guessed that, it’s ok 😄

---

<div class="post-metadata">

**Author:** ![drregg6](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/drregg6/32/17093_2.png) [@drregg6](https://forum.freecodecamp.org/u/drregg6)\
**Post date:** [January 4, 2019, 12:55pm UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132/7 "2019-01-04T12:55:51Z")

</div>

You’ve done a beautiful job. I don’t know if this is a feature you want, but there’s no limit to the amount of numbers that can go on the screen (a scroll bar appears). Other than that, you’ve completed a lovely app

---

<div class="post-metadata">

**Author:** ![tkhquang](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tkhquang/32/107686_2.png) [@tkhquang](https://forum.freecodecamp.org/u/tkhquang)\
**Post date:** [January 4, 2019, 4:40pm UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132/8 "2019-01-04T16:40:18Z")

</div>

Actually the scrollbar was intended, I make the input and result display on the same element, so it would be problematic if I set a limit for the numbers. Maybe I’ll try to find a way to handle this.

Thank you for the feedback!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 17, 2021, 5:40pm UTC](https://forum.freecodecamp.org/t/my-javascript-calculator-need-feedback/249132/9 "2021-02-17T17:40:54Z")

</div>

Closed on February 17, 2021, 5:40pm UTC


