javascript - Unexplained infinity error -
i having error tells me:
uncaught syntaxerror: unexpected token ;
so rid of ;...
...it gives me error:
uncaught syntaxerror: unexpected token for
here's code goes wrong:
function draw() { paintcanvas(); for(var = 0; < paddles.length; i++) { p = paddles[i];
the broken semicolon after paintcanvas() bit.
for(var = 0; < paddles.length; i++) { ^^^^---- html entities **not** valid in js code...
Comments
Post a Comment