call your functions
stringToInt.getSumList.toString
Should be
stringToInt.getSumList().toString()
it might not print anything because
stringToInt.getSumList
Evaluates to the getSumList function itself, then
getSumList.toString
Evaluates to undefined since the function doesn't have a toString property.