Build a Calculator with Javascript

Build a Calculator with Javascript

Kenny Yip Coding

7 месяцев назад

8,359 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@ocelotta
@ocelotta - 18.02.2025 01:39

thank you for this clear, easy to follow tutorial! <3

Ответить
@jitendrashelar4123
@jitendrashelar4123 - 09.02.2025 16:07

Great!

Ответить
@Beast-wuhu
@Beast-wuhu - 14.01.2025 19:45

No joke. You have explained very greatly, respect.
There's a suggestion, my code wasn't working properly when i do "0." + "3"
It'd give a .3 answer and then add numbers like strings like .3 + 3 = .33
I just had to convert a,b, operator to empty arrays [ ] and it worked fine
Thanks :)

Ответить
@FrancisjudeBelazon
@FrancisjudeBelazon - 18.11.2024 08:28

What is your Facebook account?

Ответить
@jamesbrummett1682
@jamesbrummett1682 - 14.11.2024 22:48

Just a clean up idea for you. When coding the functionality of the +/- button, you can just multiply the value by -1. Does the same thing without the extra coding.
else if (value === "+/-") {
if (display.value != "" && display.value != "0") {
display.value = display.value * -1;
}
}
Removes like two lines of unnecessary code and cleans it up a bit.

Ответить
@woowoojeong4345
@woowoojeong4345 - 08.11.2024 07:15

your videos are really helping

Ответить
@bharatdubey83
@bharatdubey83 - 06.11.2024 16:20

please do the same project in different languages like java, javascript, react etc. so as to understand the difference.

Ответить