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
class Car {
constructor(name, speed) { = name;
this.speed = speed;
showSpeed() {
let audi = new Car('audi', 300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment