js: "prog.js", line 15: missing ; before statement
js: class Driver {
js: ............^
js: "prog.js", line 16: missing ; before statement
js: constructor(name) {
js: ......................^
js: "prog.js", line 17: syntax error
js: this.name = name;
js: .............^
js: "prog.js", line 20: syntax error
js: }
js: ....^
js: "prog.js", line 22: syntax error
js: trips() {
js: ..........^
js: "prog.js", line 28: syntax error
js: }
js: ....^
js: "prog.js", line 30: syntax error
js: passengers() {
js: ...............^
js: "prog.js", line 36: syntax error
js: }
js: ....^
js: "prog.js", line 38: missing ; before statement
js: class Passenger {
js: ...............^
js: "prog.js", line 39: missing ; before statement
js: constructor(name) {
js: ......................^
js: "prog.js", line 40: syntax error
js: this.name = name;
js: .............^
js: "prog.js", line 43: syntax error
js: }
js: ....^
js: "prog.js", line 45: syntax error
js: trips() {
js: ..........^
js: "prog.js", line 51: syntax error
js: }
js: ....^
js: "prog.js", line 53: syntax error
js: drivers() {}
js: ............^
js: "prog.js", line 56: missing ; before statement
js: class Trip {
js: ..........^
js: "prog.js", line 57: missing ; before statement
js: constructor(driver, passenger) {
js: ...................................^
js: "prog.js", line 58: syntax error
js: this.driverId = driver;
js: .............^
js: "prog.js", line 64: syntax error
js: }
js: ....^
js: "prog.js", line 66: syntax error
js: driver() {
js: ...........^
js: "prog.js", line 72: syntax error
js: }
js: ....^
js: "prog.js", line 74: syntax error
js: passengers() {}
js: ...............^
js: "prog.js", line 1: Compilation produced 22 syntax errors.