16th Feb 2023, 6:27 AM
ć±± Zed
ć±± Zed - avatar
2 Answers
+ 4
Element ID used in JS must match that in HTML. You have "Lazer" in HTML but you have "lazer" in JS ... Line 3 let lazer = document.getElementById('Lazer');
16th Feb 2023, 6:38 AM
Ipang
+ 1
Ipang thank you!
16th Feb 2023, 6:45 AM
ć±± Zed
ć±± Zed - avatar