Answers for "javascript limit to maximum characters"

0

limit characters display javascript

var str = 'Some very long string';
if(str.length > 10) str = str.substring(0,10);
Posted by: Guest on January-05-2021

Code answers related to "javascript limit to maximum characters"

Code answers related to "Javascript"

Browse Popular Code Answers by Language