Languages
[Edit]
EN

JavaScript - how to check string length?

5 points
Created by:
AnnLen
9180

In JavaScript it is possible to check string length in following way.

1. String.prototype.length property example

var text = 'This is my text...';

console.log(text.length);

Outout:

18

Merged questions

  1. JavaScript - how to check string size?
Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join