- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprototype.js
More file actions
Latest commit
22 lines (16 loc) · 388 Bytes
/
Copy pathprototype.js
File metadata and controls
22 lines (16 loc) · 388 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
letcomputer={cpu: 12}
letlenovo={display: "HD",
__proto__: computer
}
lethp={
__proto__: lenovo
}
//console.log(computer);
//console.log(`computer`,computer.__proto__);
//console.log(`lenovo`,lenovo.__proto__);
//console.log(`hp`,hp.__proto__);
letgenericCar={tyre: 4}
lettesla={driver: "AI",
__proto__: genericCar
}
console.log(`tesla`,tesla.__proto__);