Answers for "js 60 chars only"

0

js 60 chars only

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"

Browse Popular Code Answers by Language