Javascript color | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Javascript color

How can i give an javascript output a specific color ? Is there a way to do it with css?

16th Jun 2017, 10:48 PM
TrueJu
TrueJu - avatar
2 Answers
0
as long as it's not an alert, yes, you can use css. just wrap your output in <span>, give that span a class and style it.
16th Jun 2017, 10:50 PM
Mario L.
Mario L. - avatar
+ 1
ok thank you
17th Jun 2017, 12:32 AM
TrueJu
TrueJu - avatar