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 get the following error:
Uncaught SyntaxError: unknown message reserved_word
Can not create classes in JS using Cordova?