fix: added semi-colon not in original code
Co-Authored-By: RandellDawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
		| @@ -27,7 +27,7 @@ let userData = FCC_User.followers; | ||||
| This is called <dfn>dot notation</dfn>. Alternatively, we can also access the property with brackets, like so: | ||||
|  | ||||
| ```js | ||||
| let userData = FCC_User['followers'] | ||||
| let userData = FCC_User['followers']; | ||||
| // userData equals 572 | ||||
| ``` | ||||
|  | ||||
|   | ||||
| @@ -12,9 +12,9 @@ For example: | ||||
| ```js | ||||
| let fruits = ['apples', 'pears', 'oranges', 'peaches', 'pears']; | ||||
|  | ||||
| fruits.indexOf('dates') // returns -1 | ||||
| fruits.indexOf('oranges') // returns 2 | ||||
| fruits.indexOf('pears') // returns 1, the first index at which the element exists | ||||
| fruits.indexOf('dates'); // returns -1 | ||||
| fruits.indexOf('oranges'); // returns 2 | ||||
| fruits.indexOf('pears'); // returns 1, the first index at which the element exists | ||||
| ``` | ||||
|  | ||||
| </section> | ||||
|   | ||||
| @@ -14,7 +14,6 @@ let weatherConditions = ['rain', 'snow', 'sleet', 'hail', 'clear']; | ||||
| let todaysWeather = weatherConditions.slice(1, 3); | ||||
| // todaysWeather equals ['snow', 'sleet']; | ||||
| // weatherConditions still equals ['rain', 'snow', 'sleet', 'hail', 'clear'] | ||||
|  | ||||
| ``` | ||||
|  | ||||
| In effect, we have created a new array by extracting elements from an existing array. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user