Journal Entry HW 2/24
buggy.style.left = "0px";
starts the car at (0,0)
var x = 0 var y = 0
creates a variable that tracks position of y and x
document.addEventListener("keydown", function(event){
when you press a certain key it runs the function
if(event.keyCode == 39){
logs a certain key(arrow to the right)
x = x+10;
adds 10px each time you press said arrow
buggy.style.left = x +"px"; }
makes it so you move ten px instead of not working