How to make string shorter javascript
snippet in javascript

How to make string shorter javascript

user3830

const string = "Name".slice(0, 250).concat('...');
const string2 = "Name".substring(0, 250).concat('...');