News

If so, use the .push() method to add input[i] to the resultArray. Note: This statement belongs before the inner for loop block inside the outer for loop. This is because you only want to perform this ...