The <code>parseInt()</code> function parses a string and returns an integer. Here's an example:
<code>var a = parseInt("007");</code>
The above function converts the string "007" to an integer 7. If the first character in the string can't be converted into a number, then it returns <code>NaN</code>.
</section>
## Instructions
<sectionid='instructions'>
Use <code>parseInt()</code> in the <code>convertToInteger</code> function so it converts the input string <code>str</code> into an integer, and returns it.
</section>
## Tests
<sectionid='tests'>
```yml
- text: <code>convertToInteger</code> should use the <code>parseInt()</code> function