A calculator that mimics the built-in calculator on Iphone devices.
Input numbers by typing 0-9
. Type .
for decimals.
Input operation by typing /
, *
, -
, +
Enter key is equivalent to =
Run below to compile typescript
tsc calculator.ts --target ES2016 --watch
- Link with keyboard typing
- Make operation symbol switchable. E.g, switch from
-
to*
- Add active state on hitting any button