EN
TypeScript - check string length
0
points
In TypeScript it is possible to check string length in the following way.
1. String.prototype.length property example
const text: string = 'This is my text...';
console.log(text.length);
Output:
18