DEV Community

hwangs12
hwangs12

Posted on

2 1

String size vs string length

I don't know what the difference is so I searched what the difference is...

They are the same! It is for semantic purpose that both methods exist in different names but the function is exactly the name - which returns a number of characters.

So, mystery solved!

Top comments (0)

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay