I am starting to learn to develop in html, css and javascrip and I was applying the example of “requestAnimationFrame” to an exercise I’m doing to understand more. but when I run the code I get an error like this:
“Uncaught TypeError: Can not read property ‘style’ of null”
my code editor is visual studio code and I run everything in the latest version of chrome. and attached the CSS file and javascript fileejercicios.js (384 Bytes)
mover.css (233 Bytes)
+++++++++++++++++++++++++++++++++++
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="mover.css" />
<script src="ejercicios.js"></script>
++++++++++++++++++++++++++++++++++++++++++++