diff --git a/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function/index.md b/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function/index.md index 322afb295c..5536620d19 100644 --- a/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function/index.md +++ b/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function/index.md @@ -2,9 +2,16 @@ title: Use the parseInt Function --- ## Use the parseInt Function +The ```parseInt()``` function will take any ```string``` parameter representing a number and return its integer value. -This is a stub. Help our community expand it. +## Hint 1 +```parseInt()``` should be used inside your function and return whatever ```str``` is, assuming that ```str``` is a string representing some number. -This quick style guide will help ensure your pull request gets accepted. +## Solution +```javascript +function convertToInteger(str) { + return parseInt(str); +} - +convertToInteger("56"); +```