+ 2

Why does 3 output in the code below

ver len=0 for(let ch of"Solo"{ if(ch>'a'&&ch<'z') len++; } console.log(len);

6th Jul 2019, 11:07 PM
takeru
takeru - avatar
3 Respuestas
+ 1
I will add: the condition other than the above is also incorrect and the operators '>', '<' are used instead of the ones required here '>=', '<='. Here is my example: https://code.sololearn.com/Wj0RYJ6S3yTT/?ref=app
6th Jul 2019, 11:48 PM
Michail Getmanskiy
Michail Getmanskiy - avatar
+ 1
for or
18th Mar 2022, 4:16 PM
Rishu Raj
Rishu Raj - avatar