Can i style JavaScript output? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Can i style JavaScript output?

x= sonday document.write(x); output " sonday"

23rd Jul 2018, 4:23 PM
Omar Khalil Bakhsh
Omar Khalil Bakhsh - avatar
1 Answer
+ 2
Yes, you can. document.write() just adds text to your HTML page, so you can style it by using HTML and CSS, but in my opinion, it is easier to use jQuery to add elements to your page.
23rd Jul 2018, 6:55 PM
Moritz Vogel
Moritz Vogel - avatar