JavaScript | JavaScript OOP | Question 9

Last Updated :
Discuss
Comments

What will the following code log?

JavaScript
class Vehicle {
    static start() {
        console.log("Starting vehicle...");
    }
}
Vehicle.start();


Starting vehicle...

Error

Undefined

Starting

Share your thoughts in the comments