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) is printing the right element. But when I am using console.log(char[i]) it is printing undefined.
Show your code please without your code we cannot fix
Share your code!
Can you show your code?
We aren't wizards, show your code or we can't help.