I want to font-size my tree paragraph. I use class P and font-size attribut. I have error. Thanks you. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

I want to font-size my tree paragraph. I use class P and font-size attribut. I have error. Thanks you.

Font-size my tree paragraph. https://code.sololearn.com/W5VRCPYCS0nf/?ref=app

18th Mar 2021, 6:07 AM
Malick Diagne
Malick Diagne - avatar
1 Answer
+ 2
I don't think that class P is required so you can remove that. In JavaScript you must use camel case. Also you missed writing style. paragraph.style.fontSize = "24px";
18th Mar 2021, 6:27 AM
Avinesh
Avinesh - avatar