Why my code show error. It say --Console Error message: Uncaught TypeError: document.write is not a function Line Number: 2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why my code show error. It say --Console Error message: Uncaught TypeError: document.write is not a function Line Number: 2

var a=new Array("judhisthir", "bheem", "arjun"," nakul", "sahadev"); document.write(a[3]);

24th Sep 2020, 10:31 AM
RD:programmer
RD:programmer - avatar
1 Answer
+ 1
Error didn't came in me See code: https://code.sololearn.com/W6a2WYPtaduO/?ref=app
24th Sep 2020, 1:19 PM
AMAN GUPTA
AMAN GUPTA - avatar