0

What's the Problem of this code?

var col1 = 0 var col2 = 0 var col3 = 0 function color(){ if (col3 >= 360) var x = document.getElementById("background"); x.style.background = "(" + col1 + "," + col2 + "," + col3 + ",1)"; col1 =+ 1; } color() //HTML /*<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <div id="background" style="background-color:rgba(0,0,0,1 )"></div> </body> </html>*/

13th Nov 2016, 6:53 AM
TheSimonLP YT
TheSimonLP YT - avatar
1 ответ
+ 1
It says something about Style is Not.... Line 8
13th Nov 2016, 6:53 AM
TheSimonLP YT
TheSimonLP YT - avatar