calculator

Simple Calculator Neomorphism

Preview:
https://mohammadyousefvand.github.io/Calculator/

Use eval in calculator

but

Never use eval ()!

eval() is a dangerous function, which executes the code it’s passed with the privileges of the caller. If you run eval() with a string that could be affected by a malicious party, you may end up running malicious code on the user’s machine with the permissions of your webpage / extension. More importantly, a third-party code can see the scope in which eval() was invoked, which can lead to possible attacks in ways to which the similar Function is not susceptible.

developer.mozilla.org

Screenshot from 2022-02-03 11-10-23

GitHub

View Github