javascript how to make a method in a class code example Example: javascript create class class Car { constructor(brand) { this.carname = brand; } }