Hello. The inner loop should run all its iterations before moving on to continue the outer loop. But the output I get suggests that the inner loop leaves its boundaries too early and does it twice. Any ideas?
The whole code suppose to compare two arrays and fill the third array with the items that exist in both arrays.
UPD: I forgot to put let when I was declaring j and k variables but even that doesn’t help to avoid the unwanted outcome.