Merge pull request #13198 from Manish-Giri/fix/remove-code-tags
Remove code tags from challenge seedpull/13301/head
commit
b85fb6e2f4
|
@ -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> render: function() {<br> return {<br> Container<br> }<br> }<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> render() {<br> return {<br> Container<br> }<br> }<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",
|
||||||
|
|
Loading…
Reference in New Issue