let retreatMessage = 'We no longer wish to conquer your planet. It is full of dogs, which we do not care for.';
// Write your code below
let alienShip = {
retreat() {
console.log(retreatMessage)
},
takeOff() {
console.log('Spim... Borp... Glix... Blastoff!')
}
};
alienShip.retreat();
alienShip.takeOff()
'JAVASCRIPT' 카테고리의 다른 글
OBJECTS Pass By Reference (0) | 2020.06.25 |
---|---|
Nested Objects (0) | 2020.06.25 |
== ,=== 차이로 알수있는 것들 (0) | 2020.06.24 |
.every () 예문 (0) | 2020.06.24 |
some () 예문 (0) | 2020.06.24 |