0

Why console.log(char[i]) is printing undefined

I have used a for loop to print a array. When I'm using console.log(char[3]) is printing the right element. But when I am using console.log(char[i]) it is printing undefined.

20th Sep 2020, 12:22 PM
Lucifer
Lucifer - avatar
4 odpowiedzi
+ 4
Show your code please without your code we cannot fix
20th Sep 2020, 12:26 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Share your code!
20th Sep 2020, 12:24 PM
Vadivelan
+ 2
Can you show your code?
20th Sep 2020, 12:24 PM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
We aren't wizards, show your code or we can't help.
20th Sep 2020, 12:31 PM
Raj Chhatrala
Raj Chhatrala - avatar