Okay, so what I need to do is return the most middle value in an array. And I'm supposed to use Math.round
to calculate the middle index in the array. Just to be clear, I'm NOT talking about the median, just the middle value.
That's what I need to do in text, since I'm new at javascript I don't however know how to quite execute this. Any ideas?
Also, if you think,this question doesn't belong here or is stupid, please direct me to somewhere where I can find this information, I'm just trying to learn here.
function test(arr) {
}