Does anyone know why the following code does not work for me??
I copied the solution code for the keyboard events as shown below (the commented section depicts my original code)
Tried to run in both Safari and Chrome.
let ball = document.getElementById(‘float-circle’);
// Write your code below
ball.style.bottom = ‘250px’;
ball.style.bottom = ‘50px’;
//document.onkeydown = up;
//document.onkeyup = down;