Learn Functional Programming by Building a Spreadsheet - Step 70

Tell us what’s happening:

tried everything I can think of still have no idea what’s wrong.

Your code so far



const infixEval = (str, regex) => str.replace(regex, (_match, arg1, operator, arg2) => infixToFunction[operator](arg1, arg2));


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0

Challenge Information:

Learn Functional Programming by Building a Spreadsheet - Step 70

don’t call the function in this step, remove the round parenthesis and the two arguments

1 Like