Concatenating Strings with Plus Operator
Fix FreeCodeCamp/FreeCodeCamp#5490
This commit is contained in:
committed by
SaintPeter
parent
6d4d69e90f
commit
18b31507d1
@ -972,7 +972,7 @@
|
|||||||
"id": "56533eb9ac21ba0edf2244b7",
|
"id": "56533eb9ac21ba0edf2244b7",
|
||||||
"title": "Concatenating Strings with Plus Operator",
|
"title": "Concatenating Strings with Plus Operator",
|
||||||
"description": [
|
"description": [
|
||||||
"In JavaScript, the <code>+</code> operator when used with a <code>String</code> value, it is called <dfn>concatenation</dfn> operator. You can build a string out of other strings by <dfn>concatenating</dfn> them together.",
|
"In JavaScript, the <code>+</code> operator when used with a <code>String</code> value, it is called a <dfn>concatenation</dfn> operator. You can build a string out of other strings by <dfn>concatenating</dfn> them together.",
|
||||||
"",
|
"",
|
||||||
"<code>'My name is Alan.' + ' And I am able to concatenate.'</code>",
|
"<code>'My name is Alan.' + ' And I am able to concatenate.'</code>",
|
||||||
"",
|
"",
|
||||||
@ -982,7 +982,7 @@
|
|||||||
],
|
],
|
||||||
"releasedOn": "January 1, 2016",
|
"releasedOn": "January 1, 2016",
|
||||||
"tests": [
|
"tests": [
|
||||||
"assert(myStr === \"This is the start. This is the end.\", 'message: <code>myStr</code> should have a value of <code>This is the start. This is the end</code>');",
|
"assert(myStr === \"This is the start. This is the end.\", 'message: <code>myStr</code> should have a value of <code>This is the start. This is the end.</code>');",
|
||||||
"assert(editor.getValue().match(/\"\\s*\\+\\s*\"/g).length > 1, 'message: Use the <code>+</code> operator to build <code>myStr</code>');"
|
"assert(editor.getValue().match(/\"\\s*\\+\\s*\"/g).length > 1, 'message: Use the <code>+</code> operator to build <code>myStr</code>');"
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
|
Reference in New Issue
Block a user