const alienShip = {
// A function called invade with arguments brackets
invade() {
// This is not printed to the console because this method happens within alienShip
console.log('Hello! We have come to dominate your planet. Instead of Earth, it shall be called New Xaculon.');
}
};
console.log(alienShip.invade());
// Hello! We have come to dominate your planet. Instead of Earth, it shall be called New Xaculon.
// undefined
const alienShip = {
// A function called invade with arguments brackets
invade() {
// This is not printed to the console because this method happens within alienShip
console.log('Hello! We have come to dominate your planet. Instead of Earth, it shall be called New Xaculon.');
}
};
console.log(alienShip.invade());
// Hello! We have come to dominate your planet. Instead of Earth, it shall be called New Xaculon.
// undefined