-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhomework3_task3.js
More file actions
43 lines (37 loc) · 853 Bytes
/
homework3_task3.js
File metadata and controls
43 lines (37 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
Homework 3 - JavaScript Fundamentals
COMP420 - Spring 2017
Task 3 - solutions
J. Wangsadinata
*/
var student = {
name: {
first_name: "Jason",
last_name: "Wangsadinata"
},
wesID: 278628,
class_year: 2017,
email: "jwangsadinat@wesleyan.edu",
majors: ["Computer Science", "Mathematics"]
};
var jason = student;
// You should get the same values since there is only one object, with two references.
var instructor = [
{ name: {
first_name: "Jason",
last_name: "Wangsadinata"
},
wesID: 278628,
class_year: 2017,
email: "jwangsadinat@wesleyan.edu",
majors: ["Computer Science", "Mathematics"]
},
{ name: {
first_name: "Duong",
last_name: "Vu"
},
wesID: 330909,
class_year: 2018,
email: "tvunguyen@wesleyan.edu",
majors: ["Computer Science", "Art Studio"]
}];