Challenge: ES6 Classes

This challenge will test your skills in implementing classes in the ES6 version of JavaScript.

We'll cover the following...

Problem statement #

Study and then run the code below.

Press + to interact
function Cat (name) {
this.name = name
}
Cat.meow = function () {
console.log(this.name + ' says meow')
}
let catty = new Cat('catty')
catty.meow()

You’ll get an error when you run it. Your task is to modify the code so that it runs ...