convertToInteger
should use the parseInt()
function");'
- text: ''
testString: 'assert(typeof(convertToInteger("10011")) === "number", "convertToInteger("10011")
should return a number");'
- text: ''
testString: 'assert(convertToInteger("10011") === 19, "convertToInteger("10011")
should return 19");'
- text: ''
testString: 'assert(convertToInteger("111001") === 57, "convertToInteger("111001")
should return 57");'
- text: ''
testString: 'assert.isNaN(convertToInteger("JamesBond"), "convertToInteger("JamesBond")
should return NaN");'
```