I have a string, and I need to get its first character.
var x = \'somestring\'; alert(x[0]); //in ie7 returns undefined
How can I fix my co
You can even use slice to cut-off all other characters:
slice
x.slice(0, 1);