Index.html
<script src="js/app/models/Negociacao.js"></script>
<script>
var n1 = new Negociacao(new Date(), 1, 250);
console.log(n1);
</script>
Negociacao.js
class Negociacao {
contructor(data, quantidade, valor){
this.data = data;
this.quantidade = quantidade;
this.valor = valor;
}
}
Erro:
constructor:class Negociacao
arguments:[Exception: TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context. at Function.remoteFunction (<anonymous>:2:26)]