|
| |
String Length function in JavaScript |
Length of a string can be calculated by using JavaScript length function. Here is an example of how to get length of a string.
var my_str="Hello world!"
document.write(my_str.length)
The above string will give a out put of 12
| |
| Subscribe |
|
Submit your email address and receive
article and product notifications. Your email is safe with us.
|
|
|
|