Menu
[CODE]var timing=2
function movement()
{
if(space=2,space<=70,space++);
{
setTimeout(“movement()”,10);
time();
}
else
{
document.getElementById(“move”).style.marginLeft=70+”px”;
}}
function time()
{
timing+=1;
document.getElementById(“move”).style.marginLeft=timing+”px”;
}
could someone explain to me why my if else statement is bad syntax.