var
keyword.");'
- text: ''
testString: 'getUserInput => assert(getUserInput("index").match(/const\s+myConcat/g), "myConcat
should be a constant variable (by using const
).");'
- text: ''
testString: 'assert(typeof myConcat === "function", "myConcat
should be a function");'
- text: ''
testString: 'assert(() => { const a = myConcat([1], [2]); return a[0] == 1 && a[1] == 2; }, "myConcat()
returns the correct array
");'
- text: ''
testString: 'getUserInput => assert(!getUserInput("index").match(/function/g), "function
keyword was not used.");'
```