- 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

7th Jul 2021, 5:06 AM
Malick Diagne
Malick Diagne - avatar
3 Respuestas
+ 2
class Overseas extends Customer { constructor(amount){ super(amount) var euros = this.amount * 0.82; document.body.appendChild (document.createTextNode ("You paid " + euros + " EUR")); } }
7th Jul 2021, 5:40 AM
JaScript
JaScript - avatar
0
You forgot the constructor
7th Jul 2021, 5:27 AM
Pemadam