0
How to bring both the boxes on a different line in the code
//calling the function in window.onload to make sure the HTML is loaded window.onload = function() { var pos = 0; var pos2=0; var k = prompt("Enter a Number to decide the interval of the car "); alert("the interval of the car is"+k); //our box element var k2 = prompt("Enter a Number to decide the interval of the 2nd car "); alert("the interval of the car is"+k2); var box = document.getElementById('box'); var t = setInterval(move, k); var box2 = document.getElementById(
1 Respuesta
0
do nothing lol