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