+ 1
Javascript variable color
I was wondering if I could somehow make a paragraph out of a few variables from the Javascript part so each variable has its own color... Or just one variable has a different color. I combined them with concat() and used toString() for numbers, arrays and similar. I have found fontColor() method, but it doesnât work... Hereâs an example (Iâd like to color the number): https://code.sololearn.com/WV88x3mRAewX/?ref=app
4 Answers
+ 2
Your on submit function needs event.preventDefault() to disable form submission to external by default.
https://code.sololearn.com/WctSTl1XMSt3/?ref=app
0
There are several errors in your code, but to answer the question you can use .style.color or just CSS to assign the text colour in an element and <span> elements to distinguish between the text.
0
An example was added
0
You need* to install Juggling-db Master github ÂŹÂŹÂŹÂŹto be continued