Because there are two consecutive tests with matrices of length 3, and your solution passes the first one. Each time you get a new line, it's a new console.log.
How could it be possible? The signature of the function gives the number of parameters, it cannot vary in Typescript. Please don't raise issues like this, ask questions, maybe. See there: https://docs.codewars.com/training/troubleshooting/
No problem. Apparently, passed and failed refer here to tests groups, and not to individual tests. That may depend on how the tests are organized.
Because there are two consecutive tests with matrices of length 3, and your solution passes the first one. Each time you get a new line, it's a new
console.log
.It doesn't.
How could it be possible? The signature of the function gives the number of parameters, it cannot vary in Typescript. Please don't raise issues like this, ask questions, maybe. See there: https://docs.codewars.com/training/troubleshooting/