mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-07 00:03:44 -05:00
fix(curriculum): Add new tests to check for space between result strings for two JavaScript challenges involving string concatenation (#46833)
This commit is contained in:
@@ -32,6 +32,12 @@ Build `myStr` from the strings `This is the start.` and `This is the end.` using
|
||||
|
||||
# --hints--
|
||||
|
||||
`myStr` should have a single space character between the two strings.
|
||||
|
||||
```js
|
||||
assert(/start\. This/.test(myStr));
|
||||
```
|
||||
|
||||
`myStr` should have a value of the string `This is the start. This is the end.`
|
||||
|
||||
```js
|
||||
|
||||
@@ -28,6 +28,12 @@ Build `myStr` over several lines by concatenating these two strings: `This is th
|
||||
|
||||
# --hints--
|
||||
|
||||
`myStr` should have a single space character between the two strings.
|
||||
|
||||
```js
|
||||
assert(/sentence\. This/.test(myStr));
|
||||
```
|
||||
|
||||
`myStr` should have a value of the string `This is the first sentence. This is the second sentence.`
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user