uncaught type error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

uncaught type error

There is an error when i run the code, saying that the length is undefined, what could be the problem?

13th Apr 2020, 11:20 PM
Tumininu Elushade
Tumininu Elushade - avatar
2 Answers
+ 3
Post the code related to your question and maybe you will get an answer. Otherwise, it's like you gave us a dart, put a blindfold on us, spun us in a circle, and then asked us to through a bullseye!
13th Apr 2020, 11:38 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
You're trying to access the 'length' (variable or property) for doing something with it, but that cannot be done because either the 'length' variable hadn't been declared and/or assigned with a value, or the property doesn't exist (or is undefined: good object reference but wrong value stored, or wrong reference object for the 'length' property) ^^ That cannot be possible to be more accurate if you don't share your code ;P (save a code playground project with your code if not still done, click on share button -- top right three dot linked by two lines icon -- and copy paste the link here)...
13th Apr 2020, 11:44 PM
visph
visph - avatar