- 1

I want to display backgroundColor with object. Thanks you

Display backgroundColor with class BackgroundColor. https://code.sololearn.com/WWn5O6tTSYi8/?ref=app

24th Jun 2021, 12:50 PM
Malick Diagne
Malick Diagne - avatar
1 Respuesta
+ 11
Line 73: I think there should be "heading = f.value;". Line 75: Fix the super() call. You pass value and color variables, but they are not defined in the BackgroundColor constructor. Don't forget to fix BackgroundColor instantiation on line 72 if needed. It's hard to figure out what you are trying to achieve. What DOM element should change its backgroundColor?
24th Jun 2021, 5:00 PM
Igor Makarsky
Igor Makarsky - avatar