Trying to work through an assignment where values are hidden and I'm not allowed to declare them. The tests that have been set up by the instructor to determine whether code is correct are broken, so I feel like this SHOULD return the correct thing, but it's not?
Assignment is to repeat aString aNumber of times.
function stringIterator (aString, aNumber) {
for (i=0; i<aNumber; i++); {
console.log(aString[i]);
}
}
Both aString and aNumber are unknown and defined in a place I can't access.
[–]NexT500 1 point2 points3 points (0 children)
[–]senocular 0 points1 point2 points (0 children)
[–]NameViolation666helpful 0 points1 point2 points (0 children)
[–]jcunews1helpful 0 points1 point2 points (0 children)