--- id: 5d792533bb38fab70b27f527 title: Part 16 challengeType: 0 dashedName: part-16 --- # --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). # --hints-- See description above for instructions. ```js 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' ); ``` # --seed-- ## --before-user-code-- ```html Spreadsheet
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```