I want to create a class inside my script.
Google Apps Script language is based on javaScript, so I took an example from a javaScript manual:
class Polygon {
constructor(height, width) {
this.height = height;
this.width = width;
}
}
However, this doesn't work. I get this error message:
Missing ; before statement. (line 1, file Code)
Does that mean it's not possible to create new classes in google scripts?
Or is there a different syntax I'm supposed to use?