Deprecated: sanitize_url is deprecated since version 2.8.0! Use esc_url_raw() instead. in /var/www/linuxwebdevelopment.com/wp-includes/functions.php on line 5211

How To Get The Number Of Bytes In A String In JavaScript

Last modified on Tuesday 25 Jan 2022 at 05:41 am

Getting the number of bytes in a Frontend or Node.js JavaScript string can be very useful.

For example, one reason it’s very useful is that Twitter limits posts to 280 bytes, not necessarily 280 characters. If you use just Latin characters, numbers, or other ASCII characters in a Twitter post, then the number of characters would be equal to the number of bytes since each ASCII character is made with 1 byte. Continue reading “How To Get The Number Of Bytes In A String In JavaScript”

Rhino – A Great Javascript Debugger And Interactive Tester

Whether you are new to Javascript or experienced with the language, you will definitely need a debugger to make your life easier. While Google Chrome and Firefox have great Javascript debuggers, I personally use rhino in addition to those tools when I have a large Javascript program, and I need an excellent debugger. Continue reading “Rhino – A Great Javascript Debugger And Interactive Tester”