Clarify instructions for "Understand String Immutability" (#11737)

This commit clarifies instructions for "Understand String Immutability".
pull/11871/head
Mridul Nagpal 2016-11-30 04:09:48 +05:30 committed by Mrugesh Mohapatra
parent 2434f268eb
commit 5ecfdd65f7
1 changed files with 1 additions and 1 deletions

View File

@ -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": [