const array = [1, 2, 3]
gives me a syntax error: "Error parsing expression, misplaced: const"
Are you trying to declare const inside a function? Declare it on the class level and it should work.