diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator.md index 304862aab36..3aaeab380f7 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator.md @@ -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 diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md index 1974cbbce90..94201b36790 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md @@ -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