Why console.log(char[i]) is printing undefined | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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