String.length

length

Description

String.length

Return values

integer.

Examples

Example #1 – length example
console.log('Hello World'.length); // 11 console.log('हिं'.length); // 3

External references