Canonical interview question

Implement a calculator using JS