JavaScript Objects The Strings Object- length - Javascript Objects

What is JavaScript String - length Property?

JavaScript String - length property returns the number of characters in a string.

Syntax

Use the following syntax to find the length of a string −

Return Value

It returns the number of characters in the string.

Example

Try the below example.

Output

str.length is:14


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics