get first two letter of an array javascript code example
Example: get first two letter of an array javascript
var str = '012123';
var strFirstThree = str.substring(0,3);
console.log(str); //shows '012123'
console.log(strFirstThree); // shows '012'