Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Created July 10, 2020 15:25
Show Gist options
  • Select an option

  • Save sandrabosk/02ce48201ee6227c9df55609ee6c5c14 to your computer and use it in GitHub Desktop.

Select an option

Save sandrabosk/02ce48201ee6227c9df55609ee6c5c14 to your computer and use it in GitHub Desktop.
  1. Create a function expression doTheMath(num1, sign, num2)that will return the result of the mathematic operations of num1 operator num2. Allowed operators (signs) are +, -, *, /, %, **. Hint: you can use the switch statement.
  2. Refactor the function in the arrow manner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment