javascript only first 5 chars code example
Example: 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"
var string = 'Hey, I am good';
string.substring(0,3); // show first 3 characters
//result "Hey"