🌈 搜索
📅  最后修改于: 2022-03-11 15:01:51             🧑  作者: Mango
var str = userInput[0]; var count = 0; while(str[count] !== undefined) { count += 1; } console.log(count)