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