i'm trying to use class on Office Scripts (Excel Online). constructor() produces "Unexpected strict mode reserved word". could someone help me?
function main(workbook: ExcelScript.Workbook)
{
class Foo{
constructor(){
console.log("Foo!");
}
}
const foo = new Foo();
}
code editor screenshot "Unexpected strict mode reserved word"