--- id: 5d792533bb38fab70b27f527 title: Part 016 challengeType: 0 isBeta: true --- ## Description
`arg1` and `arg2` are the numbers input by the user in a string such as "1+3". Pass `parseFloat(arg1)` and `parseFloat(arg2)` as the arguments to `infixToFunction[fn]` (remember `infixToFunction[fn]` is a function).
## Instructions
## Tests
```yml tests: - text: See description above for instructions. testString: const regex = /([0-9.]+)([+-\/*])([0-9.]+)/; assert(infixEval("23+35", regex) === "58" && infixEval("100-20", regex) === "80" && infixEval("10*10", regex) === "100" && infixEval("120/6", regex) === "20"); ```
## Challenge Seed
```html ```
### Before Test
```html Spreadsheet
```
### After Test
```html ```
## Solution
```html ```