fix: added semi-colon not in original code

Co-Authored-By: RandellDawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
Tom
2019-05-01 20:08:39 -07:00
committed by mrugesh mohapatra
parent 3e45db3ef5
commit 93e5554615
3 changed files with 4 additions and 5 deletions

View File

@ -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
```

View File

@ -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>

View File

@ -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.