const
keyword.");'
- text: ''
testString: 'getUserInput => assert(getUserInput("index").match(/const\s+MATH_CONSTANTS/g), "MATH_CONSTANTS
should be a constant variable (by using const
).");'
- text: ''
testString: 'getUserInput => assert(getUserInput("index").match(/const\s+MATH_CONSTANTS\s+=\s+{\s+PI:\s+3.14\s+};/g), "Do not change original MATH_CONSTANTS
.");'
- text: ''
testString: 'assert(PI === 3.14, "PI
equals 3.14
.");'
```