javascript only allow show first few characters from a string
var string = 'Hey, I am good';
string.substring(0,3); // show first 3 characters
//result "Hey"
Are there any code examples left?
New code examples in category Javascript
var string = 'Hey, I am good';
string.substring(0,3); // show first 3 characters
//result "Hey"