Hello,

I wrote a function to output either the middle character of a string if an odd number, or the two middle characters if an even number.

I am getting the right answers, but on the tests I have to perform, the output needs to be in this format: ‘t’ , ‘th’, but the outputs I have are t and th (without the quote marks).

I have tested the type of and the outputs are strings. Is this just a matter of concatenation? I have a doubt about this as it would mean wrapping a single quote inside of double quotes which doesn’t look right?

```
function getMiddle(s) {
let length = s.length;
let tempArray = s.split("");
let remainder = length % 2;
let i = 0;
if (remainder == 1) {
i = Math.floor(length / 2);
console.log(tempArray[i]);
} else {
i = length / 2;
let resultArray = [tempArray[i - 1], tempArray[i]];
let arrayToString = resultArray.toString();
let arrayNoCommas = arrayToString.replace(/,/g, "");
return arrayNoCommas;
}
}
```