You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial/1/00/setup.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Understanding the Data Set
4
4
Over this tutorial series, we'll be changing and working with two different data sets. It'll be a big help to first understand what the data looks like.
5
5
6
6
```json
7
-
var data = [
7
+
var students = [
8
8
{
9
9
"title": "Relational Databases",
10
10
"instructor": "Sean Quentin Lewis",
@@ -20,12 +20,12 @@ Here we have an array of "student" objects. To get the first item in the array,
20
20
21
21
```js
22
22
console.log(
23
-
'first instructor', data[0].instructor
23
+
'first instructor', students[0].instructor
24
24
);
25
25
// first instructor Sean Quentin Lewis
26
26
```
27
27
28
-
+ Set `first` to the first item in the `data` array.
28
+
+ Set `first` to the first item in the `students` array.
29
29
@test('1/00/01-setup')
30
30
@action(open('00-setup.js'))
31
31
@action(set(
@@ -35,8 +35,8 @@ console.log(
35
35
var first = ::>
36
36
```
37
37
))
38
-
@hint('Get the first item in data using the array index')
39
-
@hint('Access the title of `data[0]`')
38
+
@hint('Get the first item in students using the array index')
39
+
@hint('Access the title of `students[0]`')
40
40
41
41
42
42
+ Set `myName` to the "name" of the first student in the list.
@@ -46,7 +46,7 @@ var first = ::>
46
46
var myName= ::>
47
47
```
48
48
))
49
-
@hint('Get the first "name" in the data using the array index')
49
+
@hint('Get the first "name" in the students using the array index')
0 commit comments