题解 | #统计大写字母个数#
统计大写字母个数
https://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
// Write your code here let line = await readline(); let match_arr = line.match(/[A-Z]/g); // match 函数最方便 console.log(match_arr.length);
统计大写字母个数
https://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
// Write your code here let line = await readline(); let match_arr = line.match(/[A-Z]/g); // match 函数最方便 console.log(match_arr.length);
相关推荐