MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/jn2yu6/22_javascript_string_methods/gb0l66l/?context=3
r/learnjavascript • u/tutorialstonight • Nov 03 '20
22 Javascript String Methods 🔥
https://www.tutorialstonight.com/js/javascript-string-methods.php
9 comments sorted by
View all comments
3
Be careful when using String#length, some unicode characters count for 2. Take "🔥" for example. Splitting this string in half will break the emoji.
String#length
3
u/skerit Nov 03 '20
Be careful when using
String#length, some unicode characters count for 2. Take "🔥" for example. Splitting this string in half will break the emoji.