题解 | #统计大写字母个数#
统计大写字母个数
http://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
正则匹配统计
let line = readline()
let count = 0
for(let i = 0;i<line.length; i++){
if(/^[A-Z]+$/.test(line[i])){
count++
}
}
console.log(count)