I'm having trouble getting my for loop to output each character of a string argument one at a time. However, when I test the code, it only displays the first character and then stops. I'm not sure what is causing it to only loop through once.
Below is the snippet of my code:
function printCharacters (input) {
for (var i=0; i<arguments.length; i++) {
console.log(input.charAt(i));
}
}
printCharacters("Hello");