-1
When I try to declare a class in Javascript, using, for example:
class musica{
contructor(){
this.variavel = 3;
}
funcao(){
console.log('essa é a minha variável: '+ this.variavel);
}
}
In my application I have the following error:
Uncaught Syntaxerror: Unknown message reserved_word
Unable to create classes in JS using Cordova?