- 1
I have error line 17. I want to return var euros and display it in browser. Thanks you
return var euros in class extends and display it in browser. https://code.sololearn.com/W6FqaZiyL2WR/?ref=app
3 Respostas
+ 2
class Overseas extends Customer {
constructor(amount){
super(amount)
var euros = this.amount * 0.82;
document.body.appendChild (document.createTextNode ("You paid " + euros + " EUR"));
}
}
0
You forgot the constructor