---
id: 5d7925364c106e9aaf05a16f
title: Part 077
challengeType: 0
isBeta: true
---
## Description
`evalFormula` should return the value passed to it if this value remained unchanged. Otherwise, it should call itself with the latest value.
Use the ternary operator in the last line of `evalFormula` to return `functionExpanded` if `x === functionExpanded` and `evalFormula(functionExpanded)` otherwise.
## Instructions
## Tests
```yml
tests:
- text: See description above for instructions.
testString: assert(evalFormula("(2+2)*2") === "8")
```
## Challenge Seed
```html
```
### Before Test
### After Test
```html
```
## Solution