MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/11nkhb0/javascript_is_hard_sometimes/jbvqo1t/?context=3
r/shittyprogramming • u/gabboman • Mar 10 '23
64 comments sorted by
View all comments
Show parent comment
2
let a = 0;let b = "helloworld".split('');while (b.pop()){a += 1;}console.log(a);
let a = 0;
let b = "helloworld".split('');
while (b.pop()){
a += 1;
}
console.log(a);
View all comments
Show parent comment
2
u/pacanukeha Mar 12 '23
let a = 0;let b = "helloworld".split('');while (b.pop()){a += 1;}console.log(a);