const robot = {
model: 'SAL-1000',
mobile: true,
sentient: false,
armor: 'Steel-plated',
energyLevel: 75
};
// What is missing in the following method call?
const robotKeys = Object.keys(robot);
console.log(robotKeys);
// Declare robotEntries below this line:
const robotEntries = Object.entries(robot)
console.log(robotEntries);
// Declare newRobot below this line:
const newRobot = Object.assign({laserBlaster: true, voiceRecognition: true}, robot);
console.log(newRobot);
'JAVASCRIPT' 카테고리의 다른 글
함수 (0) | 2020.10.21 |
---|---|
codecademy class 예제 (0) | 2020.07.14 |
code academy object 예제3 (0) | 2020.07.09 |
code academy object 예제2 (0) | 2020.07.09 |
codecademy 객체 예제 (0) | 2020.07.08 |