DEV Community

holaha
holaha

Posted on

How do I change the color of a table with JavaScript?

in exercise creat an table in Html id="tab1" , and a script in javascript that change the color of the odd bottom of the line with color red and the green if it's even lines .. the script is associated by click the button 'change color' i couldn't know how to calculate odd lines or the even ?

Top comments (0)