.trim()方法可以在这里工作,但您需要使用正则表达式完成此挑战。 result应该等于"Hello, World!"'
testString: 'assert(result == "Hello, World!", "result should equal to "Hello, World!"");'
- text: 您不应该使用.trim()方法。
testString: 'assert(!code.match(/\.trim\(.*?\)/), "You should not use the .trim() method.");'
- text: result变量不应设置为等于字符串。
testString: 'assert(!code.match(/result\s*=\s*".*?"/), "The result variable should not be set equal to a string.");'
```