js check the length of a string

using the javascript .length property

View CodePad Test Code for js check the length of a string

Javascript

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

Demo

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.

❤👩‍💻🕹