Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This code snippet is used in ES6 Classes JavaScript Tutorial on SFDC Stop
function Car(name, speed) { = name;
this.speed = speed;
Car.prototype.showSpeed = function() {
let audi = new Car('audi', 200);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment