Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Created July 10, 2020 16:23
Show Gist options
  • Select an option

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

Select an option

Save sandrabosk/c8e2957f80b91fdad54cbfc6921779bd 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