Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/School-Work / School Work/What are Constructor Functions/index.js |
| Date | Not specified in source |
| Repository | Janady13/School-Work |
| Revision | 4a666c890caf7c43c47d0572dbcc287373c7a78e |
| Branch | main |
| Path or archive member | School Work/What are Constructor Functions/index.js |
| Original SHA-256 | dabffcce84fbcac1914100ebf297eff391ca7c040eb8c8b9a75f9686b6c0bd96 |
| Git blob SHA | 61259b12702d05359209e650f0fddbf098ba64d8 |
| Reading-copy SHA-256 | dabffcce84fbcac1914100ebf297eff391ca7c040eb8c8b9a75f9686b6c0bd96 |
Recovered source transcript
Download complete source text ↓10 lines · 0.2 KB
const student1 = {
id: 1,
name: "Reed",
subjects: [],
addSubject(subject) {
this.subjects = [...this.subjects, subject];
}
}
student1.addSubject('Math');