squaredIntegers
should be a constant variable (by using const
).");'
- text: ''
testString: 'assert(Array.isArray(squaredIntegers), "squaredIntegers
should be an array
");'
- text: ''
testString: 'assert.deepStrictEqual(squaredIntegers, [16, 1764, 36], "squaredIntegers
should be [16, 1764, 36]
");'
- text: ''
testString: 'getUserInput => assert(!getUserInput("index").match(/function/g), "function
keyword was not used.");'
- text: ''
testString: 'getUserInput => assert(!getUserInput("index").match(/(for)|(while)/g), "loop should not be used");'
- text: ''
testString: 'getUserInput => assert(getUserInput("index").match(/map|filter|reduce/g), "map
, filter
, or reduce
should be used");'
```