js check the length of a string

using the javascript .length property

Javascript

var my_string = "hi i am a string";
var my_string_length = my_string .length;
console.log(my_string_length);

Demo

External Link for js check the length of a string

Other Items in javascript
Page Views

This page has been viewed 72 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹