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(

19th Aug 2017, 12:33 PM
Karan Shah
Karan Shah - avatar
1 Resposta
0
do nothing lol
19th Aug 2017, 1:05 PM
Aagam Shah