...

/

Solution Review: Calculator

Solution Review: Calculator

Solution to the exercise 'Calculator'.

We'll cover the following...

Solution

The solution depends on first listing all the possible values the operator can take:

  • '+'
  • '-'
  • '/'
  • '*'

Then, use operator === '<some ...