Put all lists in a single string
This commit is contained in:
committed by
systimotic
parent
3736d57545
commit
9091010c0c
@ -167,11 +167,7 @@
|
||||
"<blockquote>function Bird() {<br> this.name = \"Albert\";<br> this.color = \"blue\";<br> this.numLegs = 2;<br>}</blockquote>",
|
||||
"This <code>constructor</code> defines a <code>Bird</code> object with properties <code>name</code>, <code>color</code>, and <code>numLegs</code> set to Albert, blue, and 2, respectively.",
|
||||
"<code>Constructors</code> follow a few conventions:",
|
||||
"<ul>",
|
||||
"<li><code>Constructors</code> are defined with a capitalized name to distinguish them from other functions that are not <code>constructors</code>.</li>",
|
||||
"<li><code>Constructors</code> use the keyword <code>this</code> to set properties of the object they will create. Inside the <code>constructor</code>, <code>this</code> refers to the new object it will create.</li>",
|
||||
"<li><code>Constructors</code> define properties and behaviors instead of returning a value as other functions might.</li>",
|
||||
"</ul>",
|
||||
"<ul><li><code>Constructors</code> are defined with a capitalized name to distinguish them from other functions that are not <code>constructors</code>.</li><li><code>Constructors</code> use the keyword <code>this</code> to set properties of the object they will create. Inside the <code>constructor</code>, <code>this</code> refers to the new object it will create.</li><li><code>Constructors</code> define properties and behaviors instead of returning a value as other functions might.</li></ul>",
|
||||
"<hr>",
|
||||
"Create a <code>constructor</code>, <code>Dog</code>, with properties <code>name</code>, <code>color</code>, and <code>numLegs</code> that are set to a string, a string, and a number, respectively."
|
||||
],
|
||||
|
Reference in New Issue
Block a user