为什么在 google 脚本中拆分字符串后无法获取数组长度?

Why can't I get an array length after I split a string in google script?

在Google 脚本中,拆分字符串后,无法获取结果数组的长度。我想这不是一个数组?如果是这样,我怎样才能把它变成一个有长度值的数组?

function splitAndCount() {
  str = "33,34,35"; //example string
  var stringSplit = str.split(","); //split string
  return stringSplit.length(); //
  // TypeError: Cannot call property length in object 33,34,35. It is not a function, it is "number". 
}

不是函数,是属性

function splitAndCount() {
  str = "33,34,35"; //example string
  var stringSplit = str.split(","); //split string
  return stringSplit.length
}

console.log(splitAndCount())

从 stringSplit.length 中删除括号,它不是函数

function splitAndCount() {
  str = "33,34,35"; //example string
  var stringSplit = str.split(","); //split string
  return **stringSplit.length**; 
}