/

HTML / CSS / JavaScript Tutorial

JavaScript String property: length

[this page | pdf | back links]

The length property (for a JavaScript string) returns the length of the string. An empty string has length 0.

 

It has the following syntax:

 

string.length

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript String Variables


Desktop view | Switch to Mobile