- 1

Pls help me draw things with html and JavaScript

I keep getting errors however I do it can someone just give me a code for a basic rectangle with html and JavaScript That'd be very helpful my head hurts for 3 days trying to figure out my bugs

8th Mar 2022, 12:27 PM
Rafin
Rafin - avatar
6 ответов
+ 1
Rafin well I've had this problem many times and apparently it's due to the fact that the html content hasn't loaded before the js one is executed, so the fix i found to that is to put the js content right after the html content in the body tag using the script tag https://code.sololearn.com/WZwKp9nPXlqf/?ref=app
9th Mar 2022, 8:47 AM
Jalaj Madaan
Jalaj Madaan - avatar
+ 4
Java or JavaScript?
8th Mar 2022, 12:37 PM
A͢J
A͢J - avatar
+ 1
Show us your attempt and will will assist you further.
8th Mar 2022, 6:47 PM
Chris Coder
Chris Coder - avatar
0
A͢J oof sorry I meant JavaScript
8th Mar 2022, 3:45 PM
Rafin
Rafin - avatar
0
Jalaj Madaan ❤️❤️❤️
9th Mar 2022, 10:00 AM
Rafin
Rafin - avatar