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