+ 2

I want to choose another color for text by using js and use boolean operator " || ". Why doesn't it work now? Help pls🙏🙏🙏

https://code.sololearn.com/WPyI9VuE94Fs/?ref=app

11th May 2020, 1:15 PM
Pavel Durov
Pavel Durov - avatar
2 Respostas
+ 2
You can not style a string. month is just a string. Do this instead https://code.sololearn.com/WSFLZHf6s3Tp/?ref=app
11th May 2020, 1:23 PM
Ore
Ore - avatar
+ 4
Clipsmit Hello bro, I didn’t get your question :)) Do you want to change the color of the text? Edit : Solved :))
11th May 2020, 1:19 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar