<!DOCTYPE html> <html> <body> <script> class Car { constructor(name) { this.brand = name; } } const mycar = new Car("Ford"); document.write(mycar.brand); </script> </body> </html>
<!DOCTYPE html> <html> <body> <script> class Car { constructor(name) { this.brand = name; } } const mycar = new Car("Ford"); document.write(mycar.brand); </script> </body> </html>