Skip to main content

· 4 min read
ymdarake

Hi👋 How you doin'?​

When I text somebody, I write something like this at the beginning.

Do you do this too sometimes?

I like to use emojis as punctuation characters, pretty much.

WEB input validation​

So, what if you have to check the length of a message like that?

I know that I gotta be careful about stuff like .length, input[0] and so on,

but this time, I stepped in further into the internals.

Let's count string length in JavaScript​