js get first input code example
Example 1: js get first object value
var obj = { first: 'someVal' };
obj[Object.keys(obj)[0]]; //returns 'someVal'
Example 2: javascript get first character of string
var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H