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