Javascript Array Split Is Not A Function Reactjs Interview