MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/11nkhb0/javascript_is_hard_sometimes/jboyati/?context=3
r/shittyprogramming • u/gabboman • Mar 10 '23
64 comments sorted by
View all comments
Show parent comment
10
Sorry, you're totally right. Here's the fixed version:
[..."hello world".replace(/./gi, "1 character")].filter(char => parseInt(char, (010 - 1)) < 2).length
View all comments
Show parent comment
10
u/great_site_not Mar 10 '23
Sorry, you're totally right. Here's the fixed version: