You are going to be given a word. Your job is to return the middle character of the word. If the word's length is odd, return the middle character. If the word's length is even, return the middle 2 characters.
Kata.getMiddle("test")
// => return "es"
Kata.getMiddle("testing")
// => return "t"
Kata.getMiddle("middle")
// => return "dd"
Kata.getMiddle("A")
// => return "A"$ npm install @abranhe/codewars
const codewars = require('@abranhe/codewars');
codewars.getMiddle('test');
//=> 'es'Type: string