0
My code don't background tutu yellow. I do the correction. Thanks you.
Background tutu yellow. https://code.sololearn.com/WX4SZM926tTC/?ref=app
2 Answers
+ 2
Malick Diagne
Remove this line because it is overriding your span data
document.write (this.name + this.span.innerText );
https://code.sololearn.com/W0pbVlDaxW4G/?ref=app
+ 1
line 10:
this.span.innerText = this.name + " eat a lot of " + food ;
and delete line 11 (document.write)