mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-10 00:04:22 -05:00
Replace multi-line code block tags with blockquote
This commit is contained in:
@@ -103,8 +103,7 @@
|
||||
"<code>myVariable = 5;</code>",
|
||||
"Assigns the <code>Number</code> value <code>5</code> to <code>myVariable</code>.",
|
||||
"Assignment always goes from right to left. Everything to the right of the <code>=</code> operator is resolved before the value is assigned to the variable to the left of the operator.",
|
||||
"<code>myVar = 5;</code>",
|
||||
"<code>myNum = myVar;</code>",
|
||||
"<blockquote>myVar = 5;<br>myNum = myVar;</blockquote>",
|
||||
"Assigns <code>5</code> to <code>myVar</code> and then resolves <code>myVar</code> to <code>5</code> again and assigns it to <code>myNum</code>.",
|
||||
"<h4>Instructions</h4>",
|
||||
"Assign the value <code>7</code> to variable <code>a</code>.",
|
||||
@@ -1486,9 +1485,7 @@
|
||||
"description": [
|
||||
"An easy way to append data to the end of an array is via the <code>push()</code> function.",
|
||||
"<code>.push()</code> takes one or more <dfn>parameter</dfn> and \"pushes\" it onto the end of the array.",
|
||||
"<code>var arr = [1,2,3];</code>",
|
||||
"<code>arr.push(4);</code>",
|
||||
"<code>// arr is now [1,2,3,4]</code>",
|
||||
"<blockquote>var arr = [1,2,3];<br>arr.push(4);<br>// arr is now [1,2,3,4]</blockquote>",
|
||||
"<h4>Instructions</h4>",
|
||||
"Push <code>[\"dog\", 3]</code> onto the end of the <code>myArray</code> variable."
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user