Create a main function that creates instances of both classes and logs out their names, and the lastFlown property of the InactiveRocket:
// main.js
export function main() {
const saturnV = new InactiveRocket('Saturn V', new Date('May 14,1973'));
const falconHeavy = new Rocket('Falcon Heavy');
console.log(falconHeavy.name + ' is a Rocket');
console.log(saturnV.name + ' is an inactive rocket');
console.log(`${saturnV.name} was last flown: ${rocket.lastFlown}`);
}
Start your Python web server and open the following link in your browser: http://localhost:8000/.