MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/11nkhb0/javascript_is_hard_sometimes/jbq6qw2/?context=3
r/shittyprogramming • u/gabboman • Mar 10 '23
64 comments sorted by
View all comments
Show parent comment
10
Lmfao get downvoted idiot, strings are null-terminated. You have to account for the null byte at the end:
[..."hello world"].length--
Learn your shit before you go around calling other people noobs.
2 u/[deleted] Mar 11 '23 :D
2
:D
View all comments
Show parent comment
10
u/great_site_not Mar 10 '23
Lmfao get downvoted idiot, strings are null-terminated. You have to account for the null byte at the end:
Learn your shit before you go around calling other people noobs.