Constructor
new Vehicle(numWheels)
Create a new vehicle
Parameters:
Name | Type | Description |
---|---|---|
numWheels |
number | Number of wheels |
Methods
drive() → {string}
Drive the vehicle
Returns:
- Type
- string