Skip to content
Advertisement

Tag: for-loop

JavaScript – for Loop vs. Array shift

I have two functions, they do look alike but what I don’t really understand is when inside the for-loop, since the input is an array, why doesn’t the array need any index to call the first array? I have an array of… I’m trying to loop through the array with an input. The result of the first function will then

Advertisement