---
id: 5d7925330918ae4a2f282e7e
title: Part 12
challengeType: 0
---
## Description
Use arrow function syntax to define a function `infixEval` which takes `str` and `regex` as arguments and returns `str.replace(regex, "")`.
## Instructions
## Tests
```yml
tests:
- text: See description above for instructions.
testString: assert(/constinfixEval=\(str,regex\)=>str\.replace\(regex,['"]{2}\)/.test(code.replace(/\s/g, '')));
```
## Challenge Seed
```html
```
### Before Test
### After Test
```html
```
## Solution