Exercise: Batch Calculator
Test your knowledge of functions by writing a function using a dispatch table.
We'll cover the following...
Problem statement
In this challenge, make a function calculate
using a dispatch table that takes an array of arrays of three elements as input, in the format [operand1, op, operand2]
. Here, both operands are numbers and op
can be any of plus
...