Pregunta de entrevista de prooV

Q6. Write this constructor function as React ES6 Component with a state: Function Car(type, engine){ this.type = type; this.engine = engine; } Car.prototype.takeRight = function(degree}{} Car.prototype.excelerate = function(speed){}