Solution use-the-parseint-function-with-a-radix.english.md (#18746)

* Update use-the-parseint-function-with-a-radix.english.md

* Improved JavaScript formatting
This commit is contained in:
Prabhat Kumar Sahu
2018-10-16 05:10:05 +05:30
committed by Todd Chaffee
parent 1f9e26c7fe
commit 7b8a6e7385

View File

@ -62,6 +62,8 @@ convertToInteger("10011");
<section id='solution'>
```js
// solution required
function convertToInteger(str) {
return parseInt(str, 2);
}
```
</section>