Merge pull request #13198 from Manish-Giri/fix/remove-code-tags

Remove code tags from challenge seed
pull/13301/head
Eric Leung 2017-02-12 02:00:47 -08:00 committed by GitHub
commit b85fb6e2f4
1 changed files with 6 additions and 18 deletions

View File

@ -651,22 +651,10 @@
"id": "587d7b8b367417b2b2512b50", "id": "587d7b8b367417b2b2512b50",
"title": "Enhanced Object Literals : Functions", "title": "Enhanced Object Literals : Functions",
"description": [ "description": [
"With ES6, it's possible to remove the keyword function as follows, from object literals", "With ES6, it's possible to remove the keyword function as follows, from object literals:",
"<code>const Container extends Component {</code>", "<blockquote>const Container extends Component {<br>&nbsp;&nbsp;render: function() {<br>&nbsp;&nbsp;&nbsp;&nbsp;return {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>}</blockquote>",
"<code> render: function() {</code>",
"<code> return {</code>",
"<code> `<div>Container</div>`</code>",
"<code> }</code>",
"<code> }</code>",
"<code>}</code>",
"We can remove the function keyword and colon (:) altogether - and get this:", "We can remove the function keyword and colon (:) altogether - and get this:",
" const Container extends Component {", "<blockquote>const Container extends Component {<br>&nbsp;&nbsp;render() {<br>&nbsp;&nbsp;&nbsp;&nbsp;return {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>}</blockquote>",
" render() {",
" return {",
" `<div>Container</div>`",
" }",
" }",
" }",
"Instructions", "Instructions",
"Use object literal simplification to create and return a Person object" "Use object literal simplification to create and return a Person object"
], ],
@ -683,9 +671,9 @@
" }", " }",
"}", "}",
"/* Alter code above this line */", "/* Alter code above this line */",
"<code>const zod = Person(\"Zodiac Hasbro\", 56, 'male');</code>", "const zod = Person(\"Zodiac Hasbro\", 56, 'male');",
"<code>const yan = Person(\"Yanoshi Mimoto\", 55, 'male');</code>", "const yan = Person(\"Yanoshi Mimoto\", 55, 'male');",
"<code>zod.sendFriendRequest(yan);</code>" "zod.sendFriendRequest(yan);"
], ],
"tests": [ "tests": [
"// Test the output is Sending request to Yanoshi Mimoto", "// Test the output is Sending request to Yanoshi Mimoto",