No, because 'It\'s' is the string containing the characters It's, rather than the string 'It' followed by a syntax error caused by there not being a variable called s.
Not entirely sure why the output is showing it like that but I’m guessing the output code in the back is escaping.
If you loop the array and look at the words they look as you expected.
function titleCase(str) {
let arr = str.split(" ");
arr.forEach(word => console.log(word))
return arr;
}
console.log(titleCase("I'm a little tea pot"));
/*
I'm
a
little
tea
pot
[ 'I\'m', 'a', 'little', 'tea', 'pot' ]
*/
Also, if you look at the browser console it will look as expected as well.