Moved closing code to line 961

This commit is contained in:
Aryan Jabbari
2015-08-17 16:34:45 -04:00
parent 8722a0a294
commit 0cab1ebfe5

View File

@ -958,12 +958,12 @@
"We can use if statements in JavaScript to only execute code if a certain condition is met.", "We can use if statements in JavaScript to only execute code if a certain condition is met.",
"if statements require some sort of boolean condition evaluate.", "if statements require some sort of boolean condition evaluate.",
"Example:", "Example:",
"<code> if (1 == 2) {", "<code> if (1 == 2) {</code>",
"<code>&thinsp;&thinsp;return(true);</code>", "<code>&thinsp;&thinsp;return(true);</code>",
"<code>}</code>", "<code>}</code>",
"<code>else {</code>", "<code>else {</code>",
"<code>&thinsp;&thinsp;return(false);</code>", "<code>&thinsp;&thinsp;return(false);</code>",
"<code>}</code></code>", "<code>}</code>",
"Let's use <code>if</code> and <code>else</code> statements to make a coin-flip game.", "Let's use <code>if</code> and <code>else</code> statements to make a coin-flip game.",
"Create an <code>if-else statement</code> to return <code>heads</code> if the flip var is zero and to return <code>tails</code> if it's not." "Create an <code>if-else statement</code> to return <code>heads</code> if the flip var is zero and to return <code>tails</code> if it's not."
], ],