Skip to content

Commit 8bb6e72

Browse files
author
Pearl Chen
committed
Re-worded hint for empty strings in the conditional exercise.
1 parent 7b870dc commit 8bb6e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js_conditionals.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ <h2><div class="smaller">Mini-exercise (5-10 minutes)</div>
644644
You have been supplied with 1 variable (<code>address</code>). After you press the &quot;Check out now!&quot; button, <code>address</code> which will <em>automagically</em> update to what is typed into the text field.
645645
</p>
646646
<div class="hint">
647-
<p>1. Use a conditional test so someone cannot supply a blank address. Hint: If you don't type anything into the address field, you get an &quot;empty string&quot;. How do you test for an empty string? (Try looking at the solution on <a href="index.html#slide-63" target="_blank">Slide #63</a>.)
647+
<p>1. Use a conditional test so someone cannot supply a blank address.<br />Hint: If you don't type anything into the address field, you get an <span class="keyword">empty string</span>. Remember that an empty string is simply two quotes with nothing inbetween them. e.g. <code>var emptyString = <strong>""</strong>;</code>)
648648
</p>
649649
</div>
650650

0 commit comments

Comments
 (0)