JavaScript "Can't read null" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

JavaScript "Can't read null"

The JavaScript code says cant read null. can someone help me? Name: Premier

24th Jul 2022, 2:37 AM
11B57
11B57 - avatar
7 Answers
+ 2
Loopeee You have to write JS code except other functions inside window.onload function Because JS code execute before loading html contents.
24th Jul 2022, 2:13 PM
A͢J
A͢J - avatar
+ 1
Loopeee This code doesn't contains JavaScript code
24th Jul 2022, 9:10 AM
A͢J
A͢J - avatar
0
Loopeee Code?
24th Jul 2022, 3:15 AM
A͢J
A͢J - avatar
24th Jul 2022, 8:43 AM
11B57
11B57 - avatar
0
A͢J sorry my bad
24th Jul 2022, 9:46 AM
11B57
11B57 - avatar
0
Is it okay now?
24th Jul 2022, 9:46 AM
11B57
11B57 - avatar
0
A͢J its from line: 11
24th Jul 2022, 9:47 AM
11B57
11B57 - avatar