Clarify instructions for dot operator challenge

pull/6341/head
Eric Leung 2016-01-19 23:36:36 -08:00
parent c101d009d3
commit 3e9bd8500f
1 changed files with 2 additions and 2 deletions

View File

@ -3141,9 +3141,9 @@
"There are two ways to access the properties of an object: the dot operator (<code>.</code>) and bracket notation (<code>[]</code>), similar to an array.",
"The dot operator is what you use when you know the name of the property you're trying to access ahead of time.",
"Here is a sample of using the dot operator (<code>.</code>) to read an object property:",
"<blockquote>var myObj = {<br> prop1: \"val1\",<br> prop2: \"val2\"<br>};<br>myObj.prop1; // val1<br>myObj.prop2; // val2</blockquote>",
"<blockquote>var myObj = {<br> prop1: \"val1\",<br> prop2: \"val2\"<br>};<br>var prop1val = myObj.prop1; // val1<br>var prop2val = myObj.prop2; // val2</blockquote>",
"<h4>Instructions</h4>",
"Read the values of the properties <code>hat</code> and <code>shirt</code> of <code>testObj</code> using dot notation."
"Read in the property values of <code>testObj</code> using dot notation. Set the property <code>hat</code> to the variable <code>hatValue</code> and the property <code>shirt</code> to <code>shirtValue</code>."
],
"releasedOn": "January 1, 2016",
"challengeSeed": [