I have created class like below. Is there something wrong with following? I just followed others' way but it continuously gives me, 'Test run failure: file script.js has invalid syntax'. I have searched very hard, I do not think there is any exceptions from them. Could you give some advice for this?
class AAA {
constructor(value) {
this.value = value;
}
add = a => value + a;
}