String.prototype.trim()
method would work here, but you'll need to complete this challenge using regular expressions.
result
should equal to "Hello, World!"
testString: assert(result == "Hello, World!");
- text: Your solution should not use the String.prototype.trim()
method.
testString: assert(!code.match(/\.?[\s\S]*?trim/));
- text: The result
variable should not be set equal to a string.
testString: assert(!code.match(/result\s*=\s*".*?"/));
```