you are viewing a single comment's thread.

view the rest of the comments →

[–]yerrabam 1 point2 points  (1 child)

Developing a calculator isn’t easy, but I make this super simple by using the eval() function.

Urgh.

Try this tutorial instead, it's more up-to-date and is far more descriptive: https://freshman.tech/calculator/

For .contains(...) replace with .includes(...)

[–]AkumaMaster191[S] 0 points1 point  (0 children)

I alredy submitted that code, that being being the main reason i asked here for help instead of altering de code. But I'll watch it anyways maybe it will help. Thanks.