Clarify instructions for "Understand String Immutability" (#11737)
This commit clarifies instructions for "Understand String Immutability".pull/18182/head
parent
f33f75c939
commit
8a2f9beddd
|
@ -1535,7 +1535,7 @@
|
|||
"cannot change the value of <code>myStr</code> to \"Job\", because the contents of <code>myStr</code> cannot be altered. Note that this does <em>not</em> mean that <code>myStr</code> cannot be changed, just that the individual characters of a <dfn>string literal</dfn> cannot be changed. The only way to change <code>myStr</code> would be to assign it with a new string, like this:",
|
||||
"<blockquote>var myStr = \"Bob\";<br>myStr = \"Job\";</blockquote>",
|
||||
"<h4>Instructions</h4>",
|
||||
"Correct the assignment to <code>myStr</code> to achieve the desired effect."
|
||||
"Correct the assignment to <code>myStr</code> to achieve the desired effect that is intended by <code>myStr[0] = \"H\" ;</code>."
|
||||
],
|
||||
"releasedOn": "January 1, 2016",
|
||||
"challengeSeed": [
|
||||
|
|
Loading…
Reference in New Issue