1There might not seem to be a difference with 'color' but consider:
2
3element.style.backgroundColor = 'blue' // works
4element.style['backgroundColor'] = 'blue' // works
5element.style['background-color'] = 'blue' // does not work
6
7element.style.setProperty('background-color','blue') // works
8element.style.setProperty('backgroundColor','blue') // does not work