0
How the answer is 3?
var len = 0; for(let ch of "Solo"){ if(ch>'a' && ch<'z') len++ ;} console.log(len); //Ans : 3
3 Respostas
+ 3
The S is is capital, and does not fall in the range between lowercase “a” and “z”. Therefor only 3 characters meet the condition and increase you len counter.
+ 4
There are 3 letters between 'a' and 'z' in the string: o, l, o
+ 1
Got it. thanks