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