Languages
[Edit]
EN

JavaScript - how to check string length?

5 points
Created by:
Eshaal-Wilkinson
384

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

1. String.prototype.length property example

// ONLINE-RUNNER:browser;

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

console.log(text.length);

Output:

18

Merged questions

  1. JavaScript - how to check string size?

JavaScript - String (popular problems)

JavaScript - string length
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join