📜  比较字符串长度javascript代码示例

📅  最后修改于: 2022-03-11 15:01:51             🧑  作者: Mango

代码示例5
var str = userInput[0];
  var count = 0;
  while(str[count] !== undefined)
  {
      count += 1;
  }
  console.log(count)